diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-11-29 14:37:25 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-11-29 14:37:25 -0800 |
| commit | 16764dfa31c8ca9331c725dee164738792a8d617 (patch) | |
| tree | af4186e93c6f686bab9e301c0f6217f5b3896b67 | |
| parent | ddfa7595b0c5d856f3489ec5f6dd54c920c8cf07 (diff) | |
shared-bindings: Fix blinky example. Fixes #55
| -rw-r--r-- | shared-bindings/nativeio/__init__.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shared-bindings/nativeio/__init__.c b/shared-bindings/nativeio/__init__.c index 8f9819778..46187a34a 100644 --- a/shared-bindings/nativeio/__init__.c +++ b/shared-bindings/nativeio/__init__.c @@ -98,10 +98,12 @@ //| import time //| //| with nativeio.DigitalInOut(D13) as led: -//| led.value = True -//| time.sleep(0.1) -//| led.value = False -//| time.sleep(0.1) +//| led.switch_to_output() +//| while True: +//| led.value = True +//| time.sleep(0.1) +//| led.value = False +//| time.sleep(0.1) //| STATIC const mp_rom_map_elem_t nativeio_module_globals_table[] = { |
