Search found 2758 matches

by Roberthh
Mon Jul 05, 2021 3:16 pm
Forum: MicroPython pyboard
Topic: : Why does the deepsleep current on the Pyboard differ between MicroPython and Arduino code
Replies: 3
Views: 213

Re: : Why does the deepsleep current on the Pyboard differ between MicroPython and Arduino code

30 uA is not much. That is about the current though a 100kOhm resistor ar 3.3V. So the difference could be caused by an I/O port at a different level or mode.
by Roberthh
Mon Jul 05, 2021 1:34 pm
Forum: ESP32 boards
Topic: Micropython on ESP32-C3
Replies: 16
Views: 1428

Re: Micropython on ESP32-C3

The build for ESP32-C3 is under construction. See https://github.com/micropython/micropython/pull/7438
From that PR it is possible to build a trial version.
by Roberthh
Mon Jul 05, 2021 10:22 am
Forum: ESP8266 boards
Topic: TypeError: can't convert function to int
Replies: 5
Views: 625

Re: TypeError: can't convert function to int

If you look into the script where the value of led_on is set, you'll find:

led_on = request.find("/?LED=0")

So led_on tells the position of the string "/?LED=0" in the string request. It is expected to be at the position 6, which is the 7th character of the string request.
by Roberthh
Sat Jul 03, 2021 11:54 am
Forum: General Discussion and Questions
Topic: WebREPL freezes when pasting large code block
Replies: 6
Views: 263

Re: WebREPL freezes when pasting large code block

I expect that webrepl uses memory from the heap. You can check with:

import gc
gc.collect()
gc.mem_free()

from both REPL and WebREPL.
Sometimes it helps doing a import gc;gc.collect() before loading.
by Roberthh
Sat Jul 03, 2021 6:04 am
Forum: ESP8266 boards
Topic: ESP8266 CH340G MAX7219 not displaying correctly
Replies: 2
Views: 528

Re: ESP8266 CH340G MAX7219 not displaying correctly

Could be a power problem. I don't know how you supply that set-up, but it total there are 128 LEDs, which can consume a lot of current. That may be more than the USB port can deliver.
by Roberthh
Fri Jul 02, 2021 6:31 pm
Forum: General Discussion and Questions
Topic: WebREPL freezes when pasting large code block
Replies: 6
Views: 263

Re: WebREPL freezes when pasting large code block

The heap of the ESP8266 is rather small. A single source module of 194 lines could be too much. You may have to split that in into smaller pieces. Better upload pre-compiled code using the file transfer method.
by Roberthh
Fri Jul 02, 2021 6:29 pm
Forum: micro:bit boards
Topic: Split a string into a list--help needed
Replies: 3
Views: 142

Re: Split a string into a list--help needed

If you really want a list my_list mad from a string str, you can simply write:

my_list = list(str)

But, as Dave said, direct dereferencing the str is the shortcut you most probably should take.
by Roberthh
Fri Jul 02, 2021 3:12 pm
Forum: General Discussion and Questions
Topic: How to disable auto-indent in WebREPL?
Replies: 2
Views: 130

Re: How to disable auto-indent in WebREPL?

Paste-mode. To enter push ctrl-e, to finish ctrl-d.
by Roberthh
Fri Jul 02, 2021 2:19 pm
Forum: Programs, Libraries and Tools
Topic: I ported my first library! MCP9600
Replies: 9
Views: 632

Re: I ported my first library! MCP9600

The capacitance value I find for cat6 cable are 40-50 nF/km. At 50 feet, that is less than 0.6 - 0.75 nF, which is pretty low. With low value pull-up (<4.7K) that could work at 100000 baud.
by Roberthh
Sun Jun 27, 2021 8:25 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 76
Views: 19419

Re: Teensy 4.0 & 4.1

Here is a firmware package that includes the FAT support. You can use that with SPI to connect a SD card. It also support a regular SD card at the SD card pins on the bottom side. But that is still under development. https://hidrive.ionos.com/lnk/P4CAiRPM Teensy 4.0 https://hidrive.ionos.com/lnk/n4C...