Fix Sound and replace AnalogPin.P0

This commit is contained in:
Amerlander
2020-09-10 00:51:31 +02:00
parent dac9ec48aa
commit 88f3046486
3 changed files with 13 additions and 13 deletions

View File

@ -130,7 +130,7 @@ function readSensor(): number {
// Produce a sensor value in range 0..1023
if (sensorType == "ANALOG") {
// Input range is 0..1023
value = pins.analogReadPin(AnalogPin.P0)
value = pins.analogReadPin(AnalogPin.P1)
} else if (sensorType == "TILT") {
// Input range is -1024 (pads highest)..1023 (pads lowest)
value = input.acceleration(Dimension.Y)