[Open_electroporator] pyflex_f401 v0.6 prototype turn on
John Griessen
john at cibolo.com
Tue Jul 17 22:45:41 UTC 2018
After noting so many suspect places to look, I decided to narrow it some by testing.
I put a debug LED on statement in line inside of
def pulse():
I put it at the end and worked back and found that the last if-else block stops the port B LED.
It probably stops port B PB14 also.
So, the problem is in
def pulse():
near the end of it:
def pulse():
.
.
.
adc.read_timed(adc_vals)
# 2018-7-17-jg debug what kills PB9 output...
YEL_LED = Pin('LED_YELLOW', Pin.OUT)
YEL_LED.value(1)
#stm.mem16[stm.TIM4 + stm.TIM_CR1] |= 1 # CEN -- start ADC callback
if rep_counter_overflow_detector.longer_counter==1:
stm.mem16[tim_kickoff + stm.TIM_CR1] |= 1
stm.mem16[stm.TIM1 + stm.TIM_RCR] = rep_counter_overflow_detector.or_in_end
else:
stm.mem16[tim_kickoff + stm.TIM_CR1] |= 1
adc.read_timed_stop()
print('done')
this latest debug version of pulser_main.py is pushed to the repo now.
More information about the open_electroporator
mailing list