Skip to content

Commit

Permalink
README sample fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-inksmith committed Oct 27, 2021
1 parent c5f8b5c commit bc3f70c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ basic.forever(() => {
Using the touch sensor to display the current moisture level of the soil.
```blocks
basic.forever(function () {
if (touch.getTouch(DigitalPin.P1)) {
soil.displayMoisture(AnalogPin.P0)
if (touch.getTouch(touch.TouchPin.P1)) {
soil.displayMoisture(soil.SoilPin.P0)
} else {
basic.showLeds(`
. . . . .
Expand All @@ -36,9 +36,9 @@ basic.forever(function () {
To oscillate servo at p0 up and down
```blocks
basic.forever(function () {
servos.setServoPosition(AnalogPin.P0, Position.UP)
servos.setServoPosition(servos.ServoPin.P0, Position.UP)
basic.pause(1000)
servos.setServoPosition(AnalogPin.P0, Position.DOWN)
servos.setServoPosition(servos.ServoPin.P0, Position.DOWN)
basic.pause(1000)
})
```
Expand Down

0 comments on commit bc3f70c

Please sign in to comment.