Skip to content

Commit 8961dd9

Browse files
author
Daniel Pollard
committed
changed build variables as per advice
1 parent 7f1be81 commit 8961dd9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

py/circuitpy_mpconfig.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ endif
110110
CFLAGS += -DCIRCUITPY_DIGITALIO=$(CIRCUITPY_DIGITALIO)
111111

112112
ifndef CIRCUITPY_COUNTIO
113-
CIRCUITPY_COUNTIO = 1
113+
CIRCUITPY_COUNTIO ?= 1
114114
endif
115115
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)
116116

@@ -214,7 +214,7 @@ endif
214214
CFLAGS += -DCIRCUITPY_ROTARYIO=$(CIRCUITPY_ROTARYIO)
215215

216216
ifndef CIRCUITPY_COUNTIO
217-
CIRCUITPY_COUNTIO = 1
217+
CIRCUITPY_COUNTIO = $(CIRCUITPY_FULL_BUILD)
218218
endif
219219
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)
220220

shared-bindings/countio/Counter.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@
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
//|

0 commit comments

Comments
 (0)