Search found 29 matches

by ARTaylor
Tue Sep 25, 2018 4:41 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 23
Views: 14652

Re: ws2811/2812 Programs very slow

Writing the tuple is the problem:

Code: Select all

np = (n,n,n)
for example, commenting that out fixes the issue. I guess the value for every LED is being stored, and 50+ is excessive
by ARTaylor
Tue Sep 25, 2018 4:27 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 23
Views: 14652

Re: ws2811/2812 Programs very slow

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...
by ARTaylor
Tue Sep 25, 2018 3:56 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 23
Views: 14652

Re: ws2811/2812 Programs very slow

Thanks, I missed the end of your earlier comment
by ARTaylor
Tue Sep 25, 2018 3:54 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 23
Views: 14652

Re: ws2811/2812 Programs very slow

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,...
by ARTaylor
Tue Sep 25, 2018 2:49 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 23
Views: 14652

Re: ws2811/2812 Programs very slow

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...
by ARTaylor
Tue Sep 25, 2018 2:43 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 23
Views: 14652

ws2811/2812 Programs very slow

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 ...
by ARTaylor
Sun Sep 23, 2018 11:25 am
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 46
Views: 40880

Re: New Lolin D32 Pro with 4MB PSRAM

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...
by ARTaylor
Fri Sep 21, 2018 7:45 pm
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 46
Views: 40880

Re: New Lolin D32 Pro with 4MB PSRAM

Is it because opening a serial port uses SPI?
by ARTaylor
Thu Sep 20, 2018 10:53 pm
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 46
Views: 40880

Re: New Lolin D32 Pro with 4MB PSRAM

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...
by ARTaylor
Thu Aug 02, 2018 8:14 am
Forum: ESP32 boards
Topic: Current state of BLE?
Replies: 9
Views: 13401

Current state of BLE?

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 ...