Search found 2682 matches

by Roberthh
Fri Jun 11, 2021 6:49 pm
Forum: Raspberry Pi microcontroller boards
Topic: SSD1306 using SPI
Replies: 2
Views: 108

Re: SSD1306 using SPI

Follow the examples of the documentation: https://docs.micropython.org/en/latest/ ... ht=ssd1306
by Roberthh
Fri Jun 11, 2021 4:11 pm
Forum: General Discussion and Questions
Topic: How to send binary data to the REPL?
Replies: 6
Views: 150

Re: How to send binary data to the REPL?

REPL is only active when no Python program is running. A python script can act like REPL, but for that it has to read from sys.stdin. So ,pur code has to read from sys.stdin.buffer and write that using SPI. There is no automatic redirect of sys.stdin to spi.write.
by Roberthh
Thu Jun 10, 2021 8:16 pm
Forum: ESP32 boards
Topic: ESP32S2 WiFI connection problems
Replies: 7
Views: 156

Re: ESP32S2 WiFI connection problems

It affects only the ESP32S2, because it has less RAM than the standard ESP32.
The discussion took place at the MicroPython Git repository, e.g. https://github.com/micropython/micropython/issues/7214 or https://github.com/micropython/micropython/pull/7163
by Roberthh
Wed Jun 09, 2021 3:59 pm
Forum: General Discussion and Questions
Topic: Can't use help function in interative mode
Replies: 2
Views: 62

Re: Can't use help function in interative mode

Modules help is not enabled in the Linux port by default. You could try adding the line:

#define MICROPY_PY_BUILTINS_HELP_MODULES (1)

to mpconfigport.h. It is usually located next to the other #defines related to help.
by Roberthh
Wed Jun 09, 2021 3:57 pm
Forum: ESP32 boards
Topic: ESP32S2 WiFI connection problems
Replies: 7
Views: 156

Re: ESP32S2 WiFI connection problems

That's strange. I had to do exactly that to get it running. What is reported by gc.mem_free()? Maybe now the heap os too small. You could try other reduction sizes, like 8 * 1024. This change just leaves some more RAM for the non-heap malloc, which is required by the IP stack. If malloc fails, it ju...
by Roberthh
Wed Jun 09, 2021 1:57 pm
Forum: ESP32 boards
Topic: ESP32S2 WiFI connection problems
Replies: 7
Views: 156

Re: ESP32S2 WiFI connection problems

It could be a RAM exhaustion problem. That was reported earlier. Try to reduce the size of RAM allocated for the heap. That happens in main.c at about line 123. Change that to: size_t mp_task_heap_size = heap_caps_get_largest_free_block(MALLOC_CAP_8BIT) - (12 * 1024); There is a similar code at line...
by Roberthh
Wed Jun 09, 2021 6:24 am
Forum: Raspberry Pi microcontroller boards
Topic: Arduino Nano RP2040 Connect
Replies: 5
Views: 198

Re: Arduino Nano RP2040 Connect

Thanks. That is a good hint. I will be busy for a while with extending the MIMXRT port features, so I was hoping that someone else will pick up the baton.
by Roberthh
Tue Jun 08, 2021 11:58 am
Forum: Raspberry Pi microcontroller boards
Topic: Arduino Nano RP2040 Connect
Replies: 5
Views: 198

Arduino Nano RP2040 Connect

Hi folks, Yesterday a piece of the Arduino Nano RP2040 Connect arrived at my place. Nicely made. Unfortunately the do not use the GPIO numbers for the board. So either one has to deal with lookup tables (e.g. a Python dictionary), or the code for machine.pin has ot be extended to allow symbolic name...
by Roberthh
Mon Jun 07, 2021 1:28 pm
Forum: Raspberry Pi microcontroller boards
Topic: How to address the different timers
Replies: 1
Views: 88

Re: How to address the different timers

When you create a timer with e.g. from machine import Timer tim1=Timer(period=100) # periodic with 100ms period tim2=Timer(mode=Timer.ONE_SHOT, period=1000) # one shot firing after 1000ms These objects tim1 and tim2 are the handles for these two newly created timers. As long as you keep the distinct...
by Roberthh
Sun Jun 06, 2021 7:43 am
Forum: General Discussion and Questions
Topic: Error in booting from hybrid filesystem (FAT,Littlefs2)
Replies: 4
Views: 285

Re: Error in booting from hybrid filesystem (FAT,Littlefs2)

The end user can always get access to you r files, if it is on a valid partition. Not to mention flash dumps. using frozen bytecode is a little bit more effective as protection means.