[Open_electroporator] culture shock prototype from Mitchell testing

Nathan McCorkle nmz787 at gmail.com
Tue Jul 25 20:37:25 UTC 2017


pulse is defined in tim3_enable_tim1_tim2_tim5__tim1_shuts_down.py

did you press CTRL-D on the REPL? this will 'refresh' the filesystem
and re-run boot.py, which should import that code for you, and leave
you with pulse in-scope and ready to use.

I never tested with rshell (I imagine that is what the repl command
you show gives you), since my default linux and windows tools (well I
used putty on windows) took care of anything I needed.

On Tue, Jul 25, 2017 at 1:31 PM, John Griessen <john at cibolo.com> wrote:
> I load up the files and they match in sizes to my source dir:
>
>
> /home/john> ls -la /flash
>    263 Jul 25 13:39 boot.py
>     34 Jul 25 13:39 main.py
>    962 Jul 25 13:39 nvic.py
>  21430 Jul 25 13:38 stm_low_level.py
>  11641 Jul 25 13:39 tim3_enable_tim1_tim2_tim5__tim1_shuts_down.py
>
>
> john at toolbench64 [micropython_pulser_code]ll
> total 56
> -rw-r--r-- 1 john john   263 Apr 21 23:26 boot.py
> -rw-r--r-- 1 john john    34 Apr 21 23:26 main.py
> -rw-r--r-- 1 john john   962 Apr 21 23:26 nvic.py
> -rw-r--r-- 1 john john  2721 Apr 21 23:26 pybcdc.inf
> -rw-r--r-- 1 john john  1028 Apr 22 00:10 README.md
> -rw-r--r-- 1 john john 21430 Apr 21 23:26 stm_low_level.py
> -rw-r--r-- 1 john john 11641 Apr 21 23:26
> tim3_enable_tim1_tim2_tim5__tim1_shuts_down.py
>
> but, I get that old symptom where pulse() is not defined.   Before, I had a
> partial written stm_low_level.py
> Now the file sizes match...
>
>
> /home/john> repl
> Entering REPL. Use Control-X to exit.
>>
> MicroPython v1.8.7-1-g1450b569 on 2017-02-23; G30TH with STM32F401CE
> Type "help()" for more information.
>>>>
>>>> pulse()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'pulse' is not defined
>>>> import stm
>>>> from math import ceil
>>>> from pyb import Timer
>>>> from machine import Pin
>>>> from stm_low_level import *
>>>> import micropython
>>>> a(150,4,12)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'a' is not defined
>>>> pulse()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'pulse' is not defined
>
>
> any ideas Nathan?
> _______________________________________________
> open_electroporator mailing list
> open_electroporator at cibolo.us
> https://cibolo.us/mailman/listinfo/open_electroporator



-- 
-Nathan


More information about the open_electroporator mailing list