- Wed Apr 15, 2015 11:38 am
#14621
Hello.
This looks great!
I am working on a project using adafruits flora pixels.
for me both timings work. the one in cnlohrs original code, and the one in esp8266_tpm2net.
in order to use the strip on a different pin as pin0, i needed to change how the pin-state is set. i am using the code found in the Arduino fork for esp8266:
https://github.com/esp8266/Arduinosetting/unsetting pins, where m_pin is the pin-number:
Code: Select alluint32_t mask = 1 << m_pin;
// set
GPIO_REG_WRITE(GPIO_OUT_W1TS_ADDRESS, mask);
// unset
GPIO_REG_WRITE(GPIO_OUT_W1TC_ADDRESS, mask);
at the moment i drive 2 led-strips, one on pin0 and the other on pin2.
i will test more and add strips on other pins and will wrap this up into a pull-request...
cheers
inx