After np.write(), print gc.mem_free() Also time the call np.write() That's the only thing that could be slowing down. Thanks, I can see the gc.mem_free() is showing bytes decreasing rapidly - this is happening even if np.write() is commented out. gc.collect() restores bytes as you said. Setting the...
TBH I don't understand GC right now, I will read over the docs properly this eve And yes you are absolutely correct, but I just threw this program together to test some things, the problem I found is the rate of the program drops increasingly over time - the GC functions prevent this from happening,...
Ok I think I found the solution - needs garbage collection, though I only just came across this! This quick fix following the manual works a lot better: from machine import Pin from neopixel import NeoPixel from time import sleep import gc pixelcount = 50 np = NeoPixel(Pin(19), pixelcount) while Tru...
Hi there - I feel like I am missing some vital bit of knowledge here. I have been playing with some math heavy algorithms in Micropython on the ESP32 controlling ws2811 and ws2812 leds - I have been doing things like blending between two random choices from a set palette (from a list(s)) and trying ...
I do not have a D32 Pro at hand, so the setting of the Pins was derived from the d32 specs. But they should be OK, since the software SPI works. With the Lolin32 pro I have sometimes the issue that I have to do a hard reset with the SD card inserted to get it properly working. And no, SPI and seria...
I just have tried and succeeded to use the built-in SD card on my Wemos LoLin32 Pro. It uses the sdcard.py script from the drivers/sdcard section and the following statements for mounting. import machine, sdcard, os sd = sdcard.SDCard(machine.SPI(1, sck=machine.Pin(14), mosi=machine.Pin(15), miso=m...
Hello, last time I tried working with BLE on the ESP32 a couple of months back, it was very broken - I think due to a knock on effect of changes to the ESP-IDF. Can anyone update me on how things are right now? Google is producing very little since 2017 I have this crazy idea about ble sync between ...