Code: Select all
import stm
def axle_pulse_detected(line):
stm.mem32[stm.RTC+stm.RTC_BKP9R] += 1
ExtInt(Pin('X20'), ExtInt.IRQ_RISING, Pin.PULL_UP, axle_pulse_detected)
Code: Select all
import stm
def axle_pulse_detected(line):
stm.mem32[stm.RTC+stm.RTC_BKP9R] += 1
ExtInt(Pin('X20'), ExtInt.IRQ_RISING, Pin.PULL_UP, axle_pulse_detected)
Code: Select all
ExtInt(Pin('X20'), ExtInt.IRQ_RISING, Pin.PULL_UP, axle_pulse_detected)