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
110110CFLAGS += -DCIRCUITPY_DIGITALIO=$(CIRCUITPY_DIGITALIO )
111111
112112ifndef CIRCUITPY_COUNTIO
113- CIRCUITPY_COUNTIO = 1
113+ CIRCUITPY_COUNTIO ? = 1
114114endif
115115CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO )
116116
@@ -214,7 +214,7 @@ endif
214214CFLAGS += -DCIRCUITPY_ROTARYIO=$(CIRCUITPY_ROTARYIO )
215215
216216ifndef CIRCUITPY_COUNTIO
217- CIRCUITPY_COUNTIO = 1
217+ CIRCUITPY_COUNTIO = $( CIRCUITPY_FULL_BUILD )
218218endif
219219CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO )
220220
Original file line number Diff line number Diff line change 3131//| from board import *
3232//|
3333//| pin_counter = countio.Counter(board.D1)
34- //|
34+ //| #reset the count after 100 counts
3535//| while True:
36- //| count = pin_counter.count
37- //| if count == None 10:
36+ //| if pin_counter.count == 100:
3837//| pin_counter.reset()
3938//| print(pin_counter.count)
4039//|
You can’t perform that action at this time.
0 commit comments