More hardware tests (#119)
This commit is contained in:
committed by
Peli de Halleux
parent
e1f7a5b8cf
commit
3acf4e9ac5
7
tests/touch.ts
Normal file
7
tests/touch.ts
Normal file
@ -0,0 +1,7 @@
|
||||
tests.test("Touch sensor pressed", function () {
|
||||
brick.print("Press touch sensor", 0, 50)
|
||||
brick.print("and click enter", 0, 60)
|
||||
brick.buttonEnter.pauseUntil(ButtonEvent.Click)
|
||||
brick.clearScreen()
|
||||
tests.assert("Pressed", sensors.touchSensor1.isPressed())
|
||||
})
|
Reference in New Issue
Block a user