2017-12-19 23:55:48 +01:00
|
|
|
tests.test("Touch sensor pressed", function () {
|
|
|
|
brick.print("Press touch sensor", 0, 50)
|
|
|
|
brick.print("and click enter", 0, 60)
|
2018-01-31 17:28:00 +01:00
|
|
|
brick.buttonEnter.pauseUntil(ButtonEvent.Bumped)
|
2017-12-19 23:55:48 +01:00
|
|
|
brick.clearScreen()
|
2018-01-06 04:14:55 +01:00
|
|
|
tests.assert("Pressed", sensors.touch1.isPressed())
|
2017-12-19 23:55:48 +01:00
|
|
|
})
|