Skip to content
Merged

Countio #2827

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changed build variables as per advice
  • Loading branch information
Daniel Pollard committed May 5, 2020
commit 8961dd9fe74a3ba6e55bfb1b8132a93de920a1dc
4 changes: 2 additions & 2 deletions py/circuitpy_mpconfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ endif
CFLAGS += -DCIRCUITPY_DIGITALIO=$(CIRCUITPY_DIGITALIO)

ifndef CIRCUITPY_COUNTIO
CIRCUITPY_COUNTIO = 1
CIRCUITPY_COUNTIO ?= 1
endif
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)

Expand Down Expand Up @@ -214,7 +214,7 @@ endif
CFLAGS += -DCIRCUITPY_ROTARYIO=$(CIRCUITPY_ROTARYIO)

ifndef CIRCUITPY_COUNTIO
CIRCUITPY_COUNTIO = 1
CIRCUITPY_COUNTIO = $(CIRCUITPY_FULL_BUILD)
endif
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)

Expand Down
5 changes: 2 additions & 3 deletions shared-bindings/countio/Counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
//| from board import *
//|
//| pin_counter = countio.Counter(board.D1)
//|
//| #reset the count after 100 counts
//| while True:
//| count = pin_counter.count
//| if count == None 10:
//| if pin_counter.count == 100:
//| pin_counter.reset()
//| print(pin_counter.count)
//|
Expand Down