output -> motors
This commit is contained in:
@ -2,7 +2,7 @@ screen.clear()
|
||||
screen.print("PXT!", 10, 30, Draw.Quad)
|
||||
|
||||
screen.drawRect(40, 40, 20, 10, Draw.Fill)
|
||||
output.setStatusLight(LightsPattern.Orange)
|
||||
motors.setStatusLight(LightsPattern.Orange)
|
||||
|
||||
screen.drawIcon(100, 50, screen.doubleIcon(screen.heart), Draw.Double | Draw.Transparent)
|
||||
|
||||
@ -12,7 +12,7 @@ input.buttonEnter.onEvent(ButtonEvent.Click, () => {
|
||||
|
||||
input.buttonLeft.onEvent(ButtonEvent.Click, () => {
|
||||
screen.drawRect(10, 70, 20, 10, Draw.Fill)
|
||||
output.setStatusLight(LightsPattern.Red)
|
||||
motors.setStatusLight(LightsPattern.Red)
|
||||
screen.setFont(screen.microbitFont())
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user