changed build variables as per advice
This commit is contained in:
parent
7f1be814c8
commit
8961dd9fe7
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
//|
|
||||
|
Loading…
Reference in New Issue
Block a user