[Open_electroporator] pyflex_f401 v0.6 prototype turn on

Nathan McCorkle nmz787 at gmail.com
Mon Jul 16 17:14:27 UTC 2018


Changing the import style probably won't do anything, this has nothing to
do with namespaces but feels like the Micropython folks have some
background code working during an import (in normal Python, this would be
done in an __init__.py file).

I'll open up the code and take a gander.

On Mon, Jul 16, 2018, 10:09 AM John Griessen <john at cibolo.com> wrote:

> I had a mistake before saying
>
> timers_init()
>
> turns off GPIO PB14.
>
>
> from nvic import *
>
> also turns off  GPIO PB14 when it comes before my test lines that set PB14
> as an output and as a 1.
>
> Both of those affect GPIO PB14.
>
> I need them to be independent so I can use GPIOs during other tasks.
>
> Maybe there is too much import from and * going on.
>
> nvic.py contains import machine.
>
> pulser_main.py contains
>
> from machine import Pin
> from machine import I2C
>
> Maybe we should change to straight importing without all the name
> collision possibilities of from importing?
> _______________________________________________
> 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/20180716/5c8d907e/attachment.html>


More information about the open_electroporator mailing list