Search found 224 matches

by cefn
Sun Apr 07, 2019 7:13 am
Forum: General Discussion and Questions
Topic: Installation of esptool
Replies: 9
Views: 289

Re: Installation of esptool

Well done for getting this far from a standing start! The problem you're facing is you are running a pip command INSIDE the python shell. 'pip' is a command, like 'python' which you should type directly into the Windows terminal. If you are in the python shell, press CTRL+C then type the python inst...
by cefn
Sat Mar 30, 2019 11:47 am
Forum: Programs, Libraries and Tools
Topic: New version of rshell with better startup for ESP8266 and ESP32
Replies: 3
Views: 270

Re: New version of rshell with better startup for ESP8266 and ESP32

My suspicion is that some serial drivers send the reset on connect, as it only seems to affect some OS. Linux is unaffected by this behaviour. Mac OS is affected by the behaviour. Can't remember for Windows. It's a real pain since if there is a main.py I am used to interactively killing the micropyt...
by cefn
Thu Mar 28, 2019 8:44 pm
Forum: MicroPython pyboard
Topic: Why does my REPL session always have this output
Replies: 7
Views: 216

Re: Why does my REPL session always have this output

Potentially could use 'vanguard shell' to connect.

It wraps pyserial's miniterm with a micropython-specific terminal configuration and has never spoken to a modem in its life :)

https://pypi.org/project/vgkits-vanguard/
by cefn
Thu Mar 28, 2019 5:50 pm
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 488

Re: Neopixel RGBW

Assuming Microbit has full SPI support I speculate you could follow this implementation... https://github.com/nickovs/ws2812-SPI/blob/master/neoSPI.py ...since it just ships bytes out with the right timing. Perhaps that amount of python is too much for the microbit. A lot of it is to support address...
by cefn
Thu Mar 28, 2019 5:36 pm
Forum: MicroPython pyboard
Topic: Why does my REPL session always have this output
Replies: 7
Views: 216

Re: Why does my REPL session always have this output

See https://github.com/adafruit/circuitpython/issues/611 for a bit more detail and workarounds, at least for Debian-based and Ubuntu-based Linuxes.
by cefn
Thu Mar 28, 2019 4:18 pm
Forum: Programs, Libraries and Tools
Topic: Launching a separate process instead of calling a memory intensive function
Replies: 11
Views: 481

Re: Launching a separate process instead of calling a memory intensive function

Working on similar issues, I found myself drawn to pfalcon's utemplate library https://github.com/pfalcon/utemplate which turns templates into generators consuming information from a dictionary. Assuming your logic is fixed, you can 'precompile' the generators and store them as python. That way you ...
by cefn
Sun Mar 24, 2019 5:29 pm
Forum: ESP8266 boards
Topic: ESP8266_write to external file_Micropython
Replies: 5
Views: 242

Re: ESP8266_write to external file_Micropython

Have you considered just using a socket server you've built yourself to get the data out of the ESP8266. Once you've sent the data to a CPython environment you should be able to transfer it to any database or service you want. There's bound to be a Cpython library to suit. I've recently been explori...
by cefn
Sat Mar 23, 2019 10:15 pm
Forum: ESP8266 boards
Topic: File system issue
Replies: 2
Views: 166

Re: File system issue

I previously encountered this kind of behaviour when running with a very noisy USB power supply. Do you trust the power supply you are using? Can you try the same setup with a higher-quality (typically expensive,branded) USB power source? In the past I've used Apple USB chargers or laptop USB ports ...
by cefn
Sat Mar 23, 2019 10:09 pm
Forum: General Discussion and Questions
Topic: Scripting using Rshell?
Replies: 1
Views: 112

Re: Scripting using Rshell?

I have previously used rshell's CLI behaviours directly, like this... https://github.com/vgkits/vanguard/blob/25bb089b05df8c1666f22f23b8829459852fdd05/utilities/command.py#L166 This technique involves manipulating sys.argv to 'pretend' to rshell that it has been invoked with particular command line ...
by cefn
Fri Mar 22, 2019 8:54 pm
Forum: General Discussion and Questions
Topic: compile .py to .mpy on the board
Replies: 2
Views: 156

Re: compile .py to .mpy on the board

See these issues for dynamically bytecode-compiling .mpy files on the filesystem ready to be loaded into RAM... https://github.com/micropython/micropython/issues/2709 https://github.com/micropython/micropython/issues/4187 ...and these issues for loading dynamically generated .mpy structures into exe...