Search found 228 matches

by cefn
Fri Nov 15, 2019 10:48 am
Forum: ESP8266 boards
Topic: socket - ERR_CONNECTION_RESET on 4th connection
Replies: 12
Views: 1415

Re: socket - ERR_CONNECTION_RESET on 4th connection

See the issue comment at https://github.com/micropython/micropython/issues/2299#issuecomment-264750573 which links to a workaround; using NPM's inliner package to turn any multi-file HTML resource into a single file by auto-inlining all resources. Not a direct answer to ESP8266 socket failings, but ...
by cefn
Tue Oct 22, 2019 6:18 pm
Forum: Drivers for External Components
Topic: KT403A MP3 : DFPlayer, GroveMP3
Replies: 1
Views: 143

Re: KT403A MP3 : DFPlayer, GroveMP3

See also https://github.com/ShrimpingIt/micropython-dfplayer/blob/master/README.md if you are trying to drive it from an ESP8266 (with a TX-only UART). The ScanPlayer uses a hack to monitor the 'playing' pin to scan for consecutive numerically named files and folders by trying to play them, so that ...
by cefn
Tue Oct 22, 2019 5:58 pm
Forum: General Discussion and Questions
Topic: Randomization, experimenting with my FIRST :) servo - trying to randomize an infinite loop
Replies: 2
Views: 175

Re: Randomization, experimenting with my FIRST :) servo - trying to randomize an infinite loop

Hi, PixelShady A while loop is just a set of steps which are repeated in sequence ( see https://github.com/cefn/group9/blob/master/vector/03-repeating.pdf ). The steps which are repeated are 'inside' the while block. The lines 'inside' the while block are immediately after the while line and are ind...
by cefn
Sun Jul 28, 2019 2:40 pm
Forum: Development of MicroPython
Topic: I think you guys should check this out....
Replies: 4
Views: 494

Re: I think you guys should check this out....

Hi, John Given what you've written it would've consistent with quite a few PEBCAK (user) errors. For example maybe there's a complete copy of the files from the root in the www directory, or maybe this was all running in a session where ls, cd etc weren't defined by Quickies.py at all. You say you r...
by cefn
Sun Apr 07, 2019 7:13 am
Forum: General Discussion and Questions
Topic: Installation of esptool
Replies: 9
Views: 884

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: 1310

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: 554

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: 1527

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: 554

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: 939

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 ...