Skip to content

Commit 16764df

Browse files
committed
shared-bindings: Fix blinky example. Fixes adafruit#55
1 parent ddfa759 commit 16764df

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

shared-bindings/nativeio/__init__.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@
9898
//| import time
9999
//|
100100
//| with nativeio.DigitalInOut(D13) as led:
101-
//| led.value = True
102-
//| time.sleep(0.1)
103-
//| led.value = False
104-
//| time.sleep(0.1)
101+
//| led.switch_to_output()
102+
//| while True:
103+
//| led.value = True
104+
//| time.sleep(0.1)
105+
//| led.value = False
106+
//| time.sleep(0.1)
105107
//|
106108

107109
STATIC const mp_rom_map_elem_t nativeio_module_globals_table[] = {

0 commit comments

Comments
 (0)