fix touch pin for rev 0.3 board

This commit is contained in:
Matthias L. Jugel 2016-10-26 12:54:21 +02:00
parent 739be09ac9
commit d6d64f3edb
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,3 @@
/*basic.showString("RGB")
basic.setLedColor(Colors.Blue)
basic.pause(500)
basic.setLedColor(Colors.Red)
@ -8,7 +7,6 @@ basic.pause(500)
basic.setLedColor(Colors.Violet)
basic.pause(500)
basic.setLedColor(0);
basic.showString("Gesten")
input.onGesture(Gesture.Shake, () => {
basic.showString("S")
})
@ -39,7 +37,6 @@ input.onGesture(Gesture.ThreeG, () => {
input.onGesture(Gesture.SixG, () => {
basic.showString("6")
})
*/
input.onPinPressed(TouchPin.P0, () => {
basic.showNumber(0)
})

View File

@ -37,7 +37,7 @@ declare namespace basic {
P0 = 7, // MICROBIT_ID_IO_P0
P1 = 8, // MICROBIT_ID_IO_P1
P2 = 9, // MICROBIT_ID_IO_P2
P3 = 33, // CALLIOPE_ID_IO_P3
P3 = 40, // CALLIOPE_ID_IO_P22
}
@ -264,6 +264,7 @@ declare namespace motors {
//P16 = MICROBIT_ID_IO_P16,
P19 = 24, // MICROBIT_ID_IO_P19
P20 = 25, // MICROBIT_ID_IO_P20
P22 = 40, // CALLIOPE_ID_IO_P22
}

View File

@ -29,7 +29,7 @@ enum class TouchPin {
P0 = MICROBIT_ID_IO_P0,
P1 = MICROBIT_ID_IO_P1,
P2 = MICROBIT_ID_IO_P2,
P3 = CALLIOPE_ID_IO_P3
P3 = CALLIOPE_ID_IO_P22
};
enum class AcceleratorRange {