Recently I returned to this, and found a better way to do it:
https://spin.atomicobject.com/2018/11/03/neopixels-esp32/
With bitbanging in bitbang_send_pixels I never got completely rid of flickering. But the approach with rmt channels works nicely.
The new code is now:
#include <Arduino.h ...
Search found 8 matches
- Sat Feb 02, 2019 7:12 am
- Forum: General Discussion
- Topic: Problem with parallel GPIO pins and NeoPixels
- Replies: 9
- Views: 15298
- Sat Feb 02, 2019 6:43 am
- Forum: ESP-IDF
- Topic: Using rmt_set_pin to change the pin bound to an RMT channel
- Replies: 3
- Views: 7266
Re: Using rmt_set_pin to change the pin bound to an RMT channel
Instead of rmt_set_pin (and rmt_clear_pin, which I don't know if it exists), you may be using
Code: Select all
pinMode(pin, OUTPUT);
pinMatrixOutAttach(pin, RMT_SIG_OUT0_IDX + chan, 0, 0);
.. use chan with pin, then
pinMatrixOutDetach(pin, 0, 0);
- Wed Jan 23, 2019 8:28 pm
- Forum: General Discussion
- Topic: openocd jtag problem [solved]
- Replies: 2
- Views: 4544
Re: openocd jtag problem
Sorry that I bothered you with this. I think the problem was the "adapter_khz 1000" at the end of the config options, where a 0 is missing. Also, the statement is not necessary, esp32.cfg contains an "adapter_khz 20000" statement.
- Mon Jan 21, 2019 10:36 pm
- Forum: General Discussion
- Topic: openocd jtag problem [solved]
- Replies: 2
- Views: 4544
openocd jtag problem [solved]
Hi,
I use Sloeber, and try to debug with an OpenOCD Jtag adapter.
In Eclipse, the GDB OpenOCD Debugging Config options are
-c "debug_level 3" -s d:/eclipse-sloeber/openocd-esp32/share/openocd/scripts -f interface/ftdi/openocd-usb.cfg -f board/esp-wroom-32.cfg -c "adapter_khz 1000"
When I start ...
I use Sloeber, and try to debug with an OpenOCD Jtag adapter.
In Eclipse, the GDB OpenOCD Debugging Config options are
-c "debug_level 3" -s d:/eclipse-sloeber/openocd-esp32/share/openocd/scripts -f interface/ftdi/openocd-usb.cfg -f board/esp-wroom-32.cfg -c "adapter_khz 1000"
When I start ...
- Sun Feb 11, 2018 7:20 pm
- Forum: General Discussion
- Topic: Problem with parallel GPIO pins and NeoPixels
- Replies: 9
- Views: 15298
Re: Problem with parallel GPIO pins and NeoPixels
Video of LED array now at https://www.youtube.com/watch?v=slCO8wXVvGg
- Sat Feb 10, 2018 7:45 pm
- Forum: General Discussion
- Topic: Problem with parallel GPIO pins and NeoPixels
- Replies: 9
- Views: 15298
Re: Problem with parallel GPIO pins and NeoPixels
Shortly after I wrote the last post I realized it was wrong in several respects.
First, under some circumstances the leds did still flicker. Second, there was
a programming bugs:
Instead of comparing the current cycle count against a number:
cyclesT0 = _getCycleCount() + CYCLES_T0;
do ...
First, under some circumstances the leds did still flicker. Second, there was
a programming bugs:
Instead of comparing the current cycle count against a number:
cyclesT0 = _getCycleCount() + CYCLES_T0;
do ...
- Mon Feb 05, 2018 2:21 pm
- Forum: General Discussion
- Topic: Problem with parallel GPIO pins and NeoPixels
- Replies: 9
- Views: 15298
Re: Problem with parallel GPIO pins
Preview: Re: Problem with parallel GPIO pins
This is now fixed, luckily. First I did what Vader told me to do: add level converters from 3.3 to 5 volt to each of the 10 GPIO pins.
This improved things a lot, still I saw Leds shining in unexpected places, obviously a timing problem. After a while I ...
This is now fixed, luckily. First I did what Vader told me to do: add level converters from 3.3 to 5 volt to each of the 10 GPIO pins.
This improved things a lot, still I saw Leds shining in unexpected places, obviously a timing problem. After a while I ...
- Sun Jan 28, 2018 6:11 pm
- Forum: General Discussion
- Topic: Problem with parallel GPIO pins and NeoPixels
- Replies: 9
- Views: 15298
Problem with parallel GPIO pins and NeoPixels
Hi, I cut a 5m 300 LED strip into 10 strips of 30 LEDs each, and attached each strip to one of the GPIO pins 5,16,17,18,19,23,25,26,2,4.
Then I added a setpin(pin) function to the NeoPixel library, and programmed the strips in an outer loop, setting the pin, and an inner loop, for the 30 LED. This ...
Then I added a setpin(pin) function to the NeoPixel library, and programmed the strips in an outer loop, setting the pin, and an inner loop, for the 30 LED. This ...