Search found 1938 matches

by jimmo
Thu Oct 29, 2020 4:08 am
Forum: Other Boards
Topic: [NUCLEO-L476RG] How to compile main.py and send to board
Replies: 6
Views: 104

Re: [NUCLEO-L476RG] How to compile main.py and send to board

Hi, i am having the same problem wiht a STM32 NUCLEO-L432KC, were you able to solve it wiht pyborad.py? and by the way what IDE do you use for develop yours scripts for this board? Yes, pyboard.py is compatible with any MicroPython board as it does everything via the REPL (which is a core MicroPyth...
by jimmo
Thu Oct 29, 2020 12:06 am
Forum: Drivers for External Components
Topic: spi ram
Replies: 1
Views: 62

Re: spi ram

That's very neat! A good simple alternative to dealing with sdram (if your situation suits the constraints). Nice one!
by jimmo
Wed Oct 28, 2020 11:54 pm
Forum: Development of MicroPython
Topic: problem using I2C (scl='B10', sda='B11') with STM32WB55 port
Replies: 4
Views: 149

Re: problem using I2C (scl='B10', sda='B11') with STM32WB55 port

I now have a doubt about how I have configure I2C3. Is mpconfigboard.h modification is sufficient to make I2C3(SCL=B10,SDA=B11) working ? Yes I think so, it should automatically configure the pin AF when doing it this way. Do you have access to a logic analyser or a scope? Or are you even able to c...
by jimmo
Wed Oct 28, 2020 11:51 pm
Forum: Development of MicroPython
Topic: 1.13 - import libs is slower than 1.12 ?
Replies: 4
Views: 100

Re: 1.13 - import libs is slower than 1.12 ?

And which board/port are you using?

The ESP32 and ESP8266 ports are very sensitive to code location changes due to caching effects and architectural issues. I see quite dramatic speed differences from just re-arranging code that is otherwise functionally identical.
by jimmo
Wed Oct 28, 2020 11:50 pm
Forum: ESP32 boards
Topic: Speeding up image drawing
Replies: 3
Views: 76

Re: Speeding up image drawing

Great, would be very interested to hear your results and I think it could be a really good case study to share with the community!
by jimmo
Wed Oct 28, 2020 11:49 pm
Forum: General Discussion and Questions
Topic: Why does my ISR callback work even though I am allocating memory?
Replies: 2
Views: 60

Re: Why does my ISR callback work even though I am allocating memory?

I have no clue why or if this is some special case. It depends which board/port you're using. On ESP32 for example, all IRQs are "soft" which means they run in the MicroPython scheduler. In general, the foo.irq(..., hard=) kwarg lets you control whether an IRQ is hard (runs in true interrupt contex...
by jimmo
Wed Oct 28, 2020 11:44 pm
Forum: Other Boards
Topic: [NUCLEO-L476RG] How to compile main.py and send to board
Replies: 2
Views: 47

Re: [NUCLEO-L476RG] How to compile main.py and send to board

Looks like this is a duplicate thread. Please see my reply here -- viewtopic.php?f=12&t=9221&p=51898#p51898
by jimmo
Wed Oct 28, 2020 11:44 pm
Forum: Other Boards
Topic: [NUCLEO-L476RG] How to compile main.py and send to board
Replies: 6
Views: 104

Re: [NUCLEO-L476RG] How to compile main.py and send to board

I have successfully flashed MicroPython onto the board, and can access the board via PicoCom or a similar terminal program, but I do not know how to upload a main.py I wrote on my computer to the board. MicroPython provides a filesystem on the device. Depending on the board, this may be available a...
by jimmo
Wed Oct 28, 2020 11:37 pm
Forum: General Discussion and Questions
Topic: Switching between tasks
Replies: 5
Views: 108

Re: Switching between tasks

but how I can update content in "reall-time" on the display when show e.g Task #1 ? Either: - Don't sleep for the whole 5 seconds at once. Instead loop for the duration of the task with much smaller sleeps until 5 seconds have passed. start_time = time.ticks_ms() while time.ticks_diff(time.ticks_ms...
by jimmo
Wed Oct 28, 2020 8:35 am
Forum: Programs, Libraries and Tools
Topic: How to implement the buffer protocol
Replies: 7
Views: 113

Re: How to implement the buffer protocol

What you want is currently not possible with FrameBuffer. But yes, some sort of generalised "dirty rectangles" feature would be a really good optimisation, but as pythoncoder points out, highly dependent on the particular display on terms of how to take advantage of it. It's worth noting that implem...