Skip to content

Commit

Permalink
Update redame
Browse files Browse the repository at this point in the history
  • Loading branch information
crane-hiromu authored Sep 24, 2022
1 parent 5c5eff3 commit 5310eb4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public protocol DroidOperatorProtocol: AnyObject {
func go(at speed: Double) async throws
func back(at speed: Double) async throws
func turn(by degree: Double) async throws
func stop(_ type: DroidWheel) async throws
func stop() async throws
func endTurn() async throws
func changeLEDColor(to color: UIColor) async throws
func playSound(_ type: DroidSound) async throws
func wait(for seconds: Double) async throws
Expand Down Expand Up @@ -182,7 +183,21 @@ Stop moving.
```.swift
Task {
do {
try await DroidOperator.default.stop(.move)
try await DroidOperator.default.stop()
} catch {
// catch error
}
}
```

### - endTurn

Reset wheel degree.

```.swift
Task {
do {
try await DroidOperator.default.endTurn()
} catch {
// catch error
}
Expand Down

0 comments on commit 5310eb4

Please sign in to comment.