Search found 553 matches

by jimmo
Mon Sep 23, 2019 12:13 am
Forum: Other Boards
Topic: STM32 F7 Discovery
Replies: 17
Views: 704

Re: STM32 F7 Discovery

However I couldn't make the rebase by myself, I got some errors, I will try again. Yeah you'll see a bunch of conflicts which need to be resolved manually. Testing jimmo's branch I see a kind of "missing pixels" when wrinting strings (that does not happend in forester code), executing next simple c...
by jimmo
Sun Sep 22, 2019 5:17 pm
Forum: ESP32 boards
Topic: Very simple code running on second processor
Replies: 3
Views: 65

Re: Very simple code running on second processor

This PR changed the behaviour recently. https://github.com/micropython/micropython/pull/4943 The referenced bug is extremely informative. Note that what you can do in an ISR is quite limited, so be very careful about how your thread interacts with MicroPython, but it appears that they're still sayin...
by jimmo
Sun Sep 22, 2019 4:59 pm
Forum: Drivers for External Components
Topic: LCD160CR with Pycom boards
Replies: 5
Views: 81

Re: LCD160CR with Pycom boards

Yes both i2c and spi are required. I haven't looked in detail but it would appear that all the commands happen via i2c and pixel data by spi. There's an interrupt line that the driver doesn't appear to use, but I imagine it lets you get notified on touch events. (The driver just lets you query the c...
by jimmo
Sun Sep 22, 2019 2:44 pm
Forum: ESP32 boards
Topic: Very simple code running on second processor
Replies: 3
Views: 65

Re: Very simple code running on second processor

Yep, on ESP32 you can spin up FreeRTOS tasks, and depending on configuration they can run on both cores. At the moment MicroPython threads (i.e. created with the _thread module) create tasks that are all pinned to core 1, but your own tasks can be unpinned. Note that you won't be able to call direct...
by jimmo
Sun Sep 22, 2019 2:38 pm
Forum: General Discussion and Questions
Topic: Using Lan and Wifi at same time in esp32
Replies: 1
Views: 47

Re: Using Lan and Wifi at same time in esp32

hi, Sorry I don't have a board handy with both WiFi and Ethernet to test this, but the usual way to solve this is by binding the socket to the IP address of the interface. i.e. https://docs.micropython.org/en/latest/library/usocket.html#usocket.socket.bind Have you tried that? Sorry I can't test it,...
by jimmo
Sun Sep 22, 2019 2:30 pm
Forum: Drivers for External Components
Topic: LCD160CR with Pycom boards
Replies: 5
Views: 81

Re: LCD160CR with Pycom boards

Has anyone successfully used the LCD160CR with a Pycom WiPy or LoPy4? Yup, LoPy4, using both the Pycom firmware (Pycom MicroPython 1.20.0.rc13 [v1.9.4-94bb382] on 2019-08-22; LoPy4 with ESP32) and main MicroPython (built from head). IMG_20190922_232624_resize.jpg On regular MicroPython it was prett...
by jimmo
Sun Sep 22, 2019 1:49 pm
Forum: Drivers for External Components
Topic: MAX31865 micropython driver?
Replies: 2
Views: 51

Re: MAX31865 micropython driver?

Hi, Does anybody have a micropython driver for the MAX31865 amplifier board? I've seen the CircuitPython code but am not quite proficient in differentiating cPy code from uPy to make a working uPy version. Which MicroPython board are you using? If it's a pyboard, then https://github.com/B3AU/micropy...
by jimmo
Sun Sep 22, 2019 12:02 pm
Forum: ESP32 boards
Topic: picoweb error when client connect
Replies: 6
Views: 440

Re: picoweb error when client connect

For anyone looking for an alternative to picoweb (for the reasons already described in this thread), it might be worth taking a look at https://github.com/miguelgrinberg/microdot It also supports asyncio (yay!). It's basic (by the looks of it possibly not suitable for GHPS, maybe for the OP?), but m...
by jimmo
Sun Sep 22, 2019 5:11 am
Forum: General Discussion and Questions
Topic: Is it OK to subclass memoryview?
Replies: 2
Views: 64

Re: Is it OK to subclass memoryview?

1. The reason why this was allowed in MicroPython but not in CPython? (I'm actually not sure why this is disallowed in CPython) The simple answer would be that it's extra code to check this case. It also might just be an oversight. 2. Are there any "gotchas" or things to be aware of when subclassin...
by jimmo
Sun Sep 22, 2019 4:24 am
Forum: General Discussion and Questions
Topic: Getting RuntimeError: maximum recursion depth exceeded
Replies: 1
Views: 46

Re: Getting RuntimeError: maximum recursion depth exceeded

Hi, 1 - What's the recursion depth? This is just the C stack, and (currently) the Python stack also uses the C stack. So does the regular expression's parser. 2 - Why does threading make a difference? Threads have smaller stack sizes. On STM32, the default is 4k, which you can override by using _thr...