File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ endif
110
110
CFLAGS += -DCIRCUITPY_DIGITALIO=$(CIRCUITPY_DIGITALIO )
111
111
112
112
ifndef CIRCUITPY_COUNTIO
113
- CIRCUITPY_COUNTIO = 1
113
+ CIRCUITPY_COUNTIO ? = 1
114
114
endif
115
115
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO )
116
116
@@ -214,7 +214,7 @@ endif
214
214
CFLAGS += -DCIRCUITPY_ROTARYIO=$(CIRCUITPY_ROTARYIO )
215
215
216
216
ifndef CIRCUITPY_COUNTIO
217
- CIRCUITPY_COUNTIO = 1
217
+ CIRCUITPY_COUNTIO = $( CIRCUITPY_FULL_BUILD )
218
218
endif
219
219
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO )
220
220
Original file line number Diff line number Diff line change 31
31
//| from board import *
32
32
//|
33
33
//| pin_counter = countio.Counter(board.D1)
34
- //|
34
+ //| #reset the count after 100 counts
35
35
//| while True:
36
- //| count = pin_counter.count
37
- //| if count == None 10:
36
+ //| if pin_counter.count == 100:
38
37
//| pin_counter.reset()
39
38
//| print(pin_counter.count)
40
39
//|
You can’t perform that action at this time.
0 commit comments