Search found 132 matches

by Christian Walther
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: 442

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....
by Christian Walther
Mon Mar 29, 2021 10:05 pm
Forum: ESP8266 boards
Topic: WDT reboot on startup relating to WIFI (possibly mesh wifi)
Replies: 7
Views: 262

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...
by Christian Walther
Sun Feb 28, 2021 11:48 am
Forum: ESP8266 boards
Topic: random.randint() not exists in esp8266 ?
Replies: 4
Views: 315

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...
by Christian Walther
Fri Feb 19, 2021 10:07 pm
Forum: General Discussion and Questions
Topic: Problem Installing Required Dependencies
Replies: 2
Views: 165

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.
by Christian Walther
Fri Feb 19, 2021 2:02 pm
Forum: ESP8266 boards
Topic: random.randint() not exists in esp8266 ?
Replies: 4
Views: 315

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.
by Christian Walther
Fri Feb 12, 2021 3:03 pm
Forum: General Discussion and Questions
Topic: Simple Key Trap
Replies: 3
Views: 163

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...
by Christian Walther
Fri Jan 29, 2021 11:40 am
Forum: General Discussion and Questions
Topic: Load files over wifi
Replies: 4
Views: 263

Re: Load files over wifi

WebREPL allows file transfer using either the HTML or command-line client.
by Christian Walther
Sat Jan 23, 2021 3:11 pm
Forum: Programs, Libraries and Tools
Topic: WebREPL freeze
Replies: 3
Views: 301

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 ...
by Christian Walther
Sat Jan 09, 2021 11:42 am
Forum: Other Boards
Topic: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Replies: 14
Views: 3323

Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc

I don’t know but I assume the same toolchain as used to build CircuitPython should get you going. There’s a very detailed and up-to-date guide on that. As to building MicroPython, I assume the procedure is similar to other ARM-based targets such as STM32.