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)
|
CFLAGS += -DCIRCUITPY_DIGITALIO=$(CIRCUITPY_DIGITALIO)
|
||||||
|
|
||||||
ifndef CIRCUITPY_COUNTIO
|
ifndef CIRCUITPY_COUNTIO
|
||||||
CIRCUITPY_COUNTIO = 1
|
CIRCUITPY_COUNTIO ?= 1
|
||||||
endif
|
endif
|
||||||
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)
|
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ endif
|
|||||||
CFLAGS += -DCIRCUITPY_ROTARYIO=$(CIRCUITPY_ROTARYIO)
|
CFLAGS += -DCIRCUITPY_ROTARYIO=$(CIRCUITPY_ROTARYIO)
|
||||||
|
|
||||||
ifndef CIRCUITPY_COUNTIO
|
ifndef CIRCUITPY_COUNTIO
|
||||||
CIRCUITPY_COUNTIO = 1
|
CIRCUITPY_COUNTIO = $(CIRCUITPY_FULL_BUILD)
|
||||||
endif
|
endif
|
||||||
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)
|
CFLAGS += -DCIRCUITPY_COUNTIO=$(CIRCUITPY_COUNTIO)
|
||||||
|
|
||||||
|
@ -31,10 +31,9 @@
|
|||||||
//| from board import *
|
//| from board import *
|
||||||
//|
|
//|
|
||||||
//| pin_counter = countio.Counter(board.D1)
|
//| pin_counter = countio.Counter(board.D1)
|
||||||
//|
|
//| #reset the count after 100 counts
|
||||||
//| while True:
|
//| while True:
|
||||||
//| count = pin_counter.count
|
//| if pin_counter.count == 100:
|
||||||
//| if count == None 10:
|
|
||||||
//| pin_counter.reset()
|
//| pin_counter.reset()
|
||||||
//| print(pin_counter.count)
|
//| print(pin_counter.count)
|
||||||
//|
|
//|
|
||||||
|
Loading…
Reference in New Issue
Block a user