From 18bc4430e358d9774c86b52f70d7a884cea24746 Mon Sep 17 00:00:00 2001 From: Leon Hiemstra <hiemstra@astron.nl> Date: Fri, 28 Nov 2014 08:16:05 +0000 Subject: [PATCH] test LEDs --- .../designs/unb1_test/tb/python/tc_unb1_test.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py b/boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py index f4c46d946a..09a3c5c6de 100644 --- a/boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py +++ b/boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py @@ -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, '') -- GitLab