Search found 133 matches
- Fri Apr 16, 2021 10:35 am
- Forum: ESP32 boards
- Topic: Custom files in the self-compiled Micropython
- Replies: 7
- Views: 242
Re: Custom files in the self-compiled Micropython
But you can use pyboard.py to copy files after you used esptool.py to install MicroPython. Works fine in a script if you put a sleep 5 or something between them to let MicroPython boot.
- Tue Apr 13, 2021 6:28 pm
- Forum: ESP8266 boards
- Topic: ESP8266 Bootloop after some seconds
- Replies: 10
- Views: 293
Re: ESP8266 Bootloop after some seconds
Someone had a similar problem here related to their WiFi environment – worth a try if the usual measures don’t help.
- Sun Apr 04, 2021 10:01 am
- Forum: General Discussion and Questions
- Topic: I am at a loss of how to get started??
- Replies: 14
- Views: 489
Re: I am at a loss of how to get started??
>robert@mountain-cabin:~/micropython-1.14/tools$ pyboard.py /dev/ttyACM0 blinkpico.py bash: pyboard.py: command not found Naming a command without a path does not search in the current directory, only in the $PATH environment variable. To run an executable from the current directory, say ./pyboard....
- Mon Mar 29, 2021 10:05 pm
- Forum: ESP8266 boards
- Topic: WDT reboot on startup relating to WIFI (possibly mesh wifi)
- Replies: 7
- Views: 325
Re: WDT reboot on startup relating to WIFI (possibly mesh wifi)
Did you erase the flash before installing MicroPython ( esptool.py erase_flash )? The ESP8266 remembers in flash whether WiFi was on and what network it was connected to, and tries to restore that at boot. Maybe it has stale information there. On the first boot after erasing the flash (when no files...
- Sun Feb 28, 2021 11:48 am
- Forum: ESP8266 boards
- Topic: random.randint() not exists in esp8266 ?
- Replies: 4
- Views: 342
Re: random.randint() not exists in esp8266 ?
This doesn’t work for several reasons. Lines are in the wrong order (variable is used before assignment). It gives you values outside of the requested range (try with min = 0, max = 0x1fffffff, getrandbits(30) = 0x3fffffff). It doesn’t give you a uniform distribution, some values are more likely tha...
- Fri Feb 19, 2021 10:07 pm
- Forum: General Discussion and Questions
- Topic: Problem Installing Required Dependencies
- Replies: 2
- Views: 175
Re: Problem Installing Required Dependencies
I think you now need to get the toolchain from https://developer.arm.com/tools-and-sof ... /downloads , but I’m not sure (have never built for STM32 myself), and I don’t know which version is best.
- Fri Feb 19, 2021 2:02 pm
- Forum: ESP8266 boards
- Topic: random.randint() not exists in esp8266 ?
- Replies: 4
- Views: 342
Re: random.randint() not exists in esp8266 ?
As far as I recall, random.getrandbits() is the only function available on ESP8266 (check help(random)). You can build anything else you need on top of that. Here’s a ready-to-use example.
- Fri Feb 12, 2021 3:03 pm
- Forum: General Discussion and Questions
- Topic: Simple Key Trap
- Replies: 3
- Views: 167
Re: Simple Key Trap
Reword your requirement a little and you have the answer: “don't continue until the button is released” = “while the button is pressed, don’t continue” = while button_up.value() == 1: utime.sleep(.01) Substitute that for your original utime.sleep(.01) . Blocking the program while the button is press...
- Fri Jan 29, 2021 11:40 am
- Forum: General Discussion and Questions
- Topic: Load files over wifi
- Replies: 4
- Views: 277
Re: Load files over wifi
WebREPL allows file transfer using either the HTML or command-line client.
- Sat Jan 23, 2021 3:11 pm
- Forum: Programs, Libraries and Tools
- Topic: WebREPL freeze
- Replies: 3
- Views: 309
Re: WebREPL freeze
To check whether the problem is with WebREPL, try a serial connection at the same time, you should see the same thing in both (what you type in one also appears in the other). If the serial connection is stuck too, the problem is not with WebREPL. The behavior you describe is expected if there is a ...