As I try to make my own st7789 driver compile with cmake:
https://github.com/pypilot/micropython_ugfx
really surprised this driver does not use dma, and investigating code it appears to be very slow for a lot of other reasons as well.
Search found 15 matches
- Tue May 04, 2021 2:57 pm
- Forum: ESP32 boards
- Topic: ESP32 port now uses CMake
- Replies: 20
- Views: 15096
- Mon Oct 05, 2020 2:06 am
- Forum: ESP32 boards
- Topic: issue waking from Pin change
- Replies: 1
- Views: 1149
Re: issue waking from Pin change
it works if the pulldown is used and the change is when the pin is high, but not the other way around
- Mon Oct 05, 2020 12:49 am
- Forum: ESP32 boards
- Topic: issue waking from Pin change
- Replies: 1
- Views: 1149
issue waking from Pin change
when I try to use ext1: MicroPython v1.9.4 on 2018-05-11; ESP32 module with ESP32 Type "help()" for more information. >>> from machine import Pin >>> p=Pin(12, Pin.IN, Pin.PULL_UP) >>> >>> import esp32 >>> esp32.wake_on_ext1((p,), esp32.WAKEUP_ALL_LOW) >>> import machine >>> machine.deepsleep() It j...
- Mon Jul 06, 2020 2:57 pm
- Forum: ESP32 boards
- Topic: modem sleep
- Replies: 5
- Views: 4531
Re: modem sleep
I just got around to trying this out today. I have a few questions: 1) light sleep -- in the source code it's commented out so the parameter to set it is ignored. What exactly is the problem? The rtos ticks too fast? I guess I'm wondering why it can't be used to suspend the processor and wake from v...
- Mon Jun 22, 2020 4:06 am
- Forum: ESP32 boards
- Topic: wifi latency
- Replies: 5
- Views: 4662
wifi latency
I have been having problems with wifi latency sometimes dropping 10-20 seconds. I am sending packets every 100 milliseconds, and more than 500 is considered "time out" I have tried several images with different compiler settings, including official images. Is it known that wifi is not working at its...
- Fri Jun 19, 2020 2:22 pm
- Forum: ESP32 boards
- Topic: modem sleep
- Replies: 5
- Views: 4531
modem sleep
I have searched the forum and come to the conclusion that light and modem sleep modes are not supported in micropython, is this correct? I am measuring 150mA power consumption. Looking for a way to get power below 30mA maintaining a wifi connection, but wake on a button press. It takes too long to r...
- Fri Jun 19, 2020 6:30 am
- Forum: ESP32 boards
- Topic: E (581) boot: Image contains multiple IROM segments. Only the last one will be mapped.
- Replies: 1
- Views: 1276
Re: E (581) boot: Image contains multiple IROM segments. Only the last one will be mapped.
I may have found the answer:
use "const"
Are there any other implications of this?
use "const"
Are there any other implications of this?
- Fri Jun 19, 2020 5:11 am
- Forum: ESP32 boards
- Topic: E (581) boot: Image contains multiple IROM segments. Only the last one will be mapped.
- Replies: 1
- Views: 1276
E (581) boot: Image contains multiple IROM segments. Only the last one will be mapped.
I have a lot of data I need to store in flash. I have this compiled into the firmware when building micropython as a header file: char data022116[] PROGMEM = { 0x9, 0x0, 0x15, 0x0, 0x4, 0x0, 0x1,........}; I am familiar with PROGMEM from avr, but since it was not defined, I used: #define ICACHE_RODA...
- Sun May 31, 2020 12:25 am
- Forum: General Discussion and Questions
- Topic: ram needed during import far exceeds ram needed after
- Replies: 4
- Views: 2371
Re: ram needed during import far exceeds ram needed after
I managed to break the program into 4 files and it can load now. This actually improved the code quality anyway. Would it be possible to somehow use "flash as ram" like a swap space? If I freeze the script in the firmware doesn't it need to be precompiled in this way? I managed to precompile a modul...
- Sat May 30, 2020 3:41 pm
- Forum: General Discussion and Questions
- Topic: ram needed during import far exceeds ram needed after
- Replies: 4
- Views: 2371
ram needed during import far exceeds ram needed after
I am putting my script into flash using ampy. The script is about 1200 lines of python. If I cut the script to the first 580 lines, it imports and mem_free shows 44288. If I put a few more lines, it fails to import such as: MemoryError: memory allocation failed, allocating %u bytes Maybe by breaking...