changed build variables as per advice

This commit is contained in:
Daniel Pollard 2020-05-06 09:05:14 +10:00
parent 7f1be814c8
commit 8961dd9fe7
2 changed files with 4 additions and 5 deletions

View File

@ -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)
@ -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)

View File

@ -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)
//|