diff options
Diffstat (limited to 'stmhal/led.c')
-rw-r--r-- | stmhal/led.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stmhal/led.c b/stmhal/led.c index 677c151b33..80c1e145f1 100644 --- a/stmhal/led.c +++ b/stmhal/led.c @@ -73,6 +73,14 @@ void led_toggle(pyb_led_t led) { } } +void led_debug(int n, int delay) { + led_state(1, n & 1); + led_state(2, n & 2); + led_state(3, n & 4); + led_state(4, n & 8); + HAL_Delay(delay); +} + /******************************************************************************/ /* Micro Python bindings */ |