summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/led.c
diff options
context:
space:
mode:
authorRachel Dowdall <rjdowdall@gmail.com>2014-03-22 12:17:36 +0000
committerRachel Dowdall <rjdowdall@gmail.com>2014-03-22 12:17:36 +0000
commit17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5 (patch)
tree36077e73d30aa91f94ed74b707facc86b7ed7937 /stmhal/led.c
parent300c8bd4c2c0c6d626a6aaeb873c22a8f8b9fc3f (diff)
parentda8d21e0dd236ae5e31bfac4ff8d5b73ddd49282 (diff)
downloadmicropython-17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5.tar.gz
micropython-17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'stmhal/led.c')
-rw-r--r--stmhal/led.c8
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 */