pxt-ev3/scripts/pxt.lms

27 lines
656 B
Plaintext
Raw Normal View History

define appv 'RunAndWaitForEsc V0.00'
vmthread MAIN
{
DATA8 State
DATA32 Status
DATA32 Timer
2017-07-07 14:08:36 +02:00
DATA16 Serial
UI_WRITE(LED,LED_ORANGE)
UI_DRAW(TEXT,FG_COLOR,48,62,'Starting...')
UI_DRAW(UPDATE)
2017-07-07 14:08:36 +02:00
// Make sure VM knows that /tmp/serial.txt is open for writing and can stream the content
//FILE(OPEN_WRITE, '/tmp/serial.txt', Serial)
2017-07-07 14:08:36 +02:00
// Actual filename is patched-in here
2017-07-06 18:34:31 +02:00
SYSTEM('XXXXXXXXX', Status)
Loop:
//UI_BUTTON(WAIT_FOR_PRESS)
//UI_BUTTON(SHORTPRESS,BACK_BUTTON,State)
//JR_FALSE(State,Loop)
//UI_WRITE(LED,LED_RED)
TIMER_WAIT(100, Timer)
TIMER_READY(Timer)
UI_DRAW(TEXT,FG_COLOR,48,62,'Bye!')
UI_DRAW(UPDATE)
}