[Open_electroporator] pyflex_f401 v0.6 prototype turn on
Nathan McCorkle
nmz787 at gmail.com
Tue Jul 17 23:51:02 UTC 2018
I see you're recreating the LED Pin object a few times.
Can you delete all duplicates and place this before the line starting with
"def a(":
YEL_LED = Pin('LED_YELLOW', Pin.OUT)
I checked the read_timed and read_timed_stop and they don't appear to be
doing anything dumb.
On Tue, Jul 17, 2018, 3:45 PM John Griessen <john at cibolo.com> wrote:
> 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.
> _______________________________________________
> open_electroporator mailing list
> open_electroporator at cibolo.us
> https://cibolo.us/mailman/listinfo/open_electroporator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cibolo.us/pipermail/open_electroporator/attachments/20180717/a602160f/attachment.html>
More information about the open_electroporator
mailing list