Fix Sound and replace AnalogPin.P0

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

No files matched your search

+1 -1
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)