Skip to content
Snippets Groups Projects
Commit 18bc4430 authored by Kenneth Hiemstra's avatar Kenneth Hiemstra
Browse files

test LEDs

parent 37ce5422
No related branches found
No related tags found
No related merge requests found
......@@ -439,7 +439,7 @@ def test_flash(tc,io,cmd):
tc.append_log(3, '')
def led(tc,dw,led,text):
def set_led(tc,dw,led,text):
tc.append_log(3, text)
dw.set_led(led)
tc.sleep(1.0)
......@@ -450,13 +450,13 @@ def test_leds(tc,io,cmd):
tc.append_log(1, '>>> %s' % help_text(tc,io,cmd))
tc.append_log(3, '>>>')
dw = pi_debug_wave.PiDebugWave(tc, io)
led(tc,dw,'off', '')
led(tc,dw,'red', 'RED on')
led(tc,dw,'off', 'RED off')
led(tc,dw,'green','GREEN on')
led(tc,dw,'off', 'GREEN off')
led(tc,dw,'both', 'ORANGE (RED+GREEN) on')
led(tc,dw,'off', 'ORANGE (RED+GREEN) off')
set_led(tc,dw,'off', '')
set_led(tc,dw,'red', 'RED on')
set_led(tc,dw,'off', 'RED off')
set_led(tc,dw,'green','GREEN on')
set_led(tc,dw,'off', 'GREEN off')
set_led(tc,dw,'both', 'ORANGE (RED+GREEN) on')
set_led(tc,dw,'off', 'ORANGE (RED+GREEN) off')
tc.append_log(3, '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment