Closed Alloc86 closed 1 month ago
Was a "me-issue" of course :)
Missed that pinMode
not only changes the INEN bit in PINCFG but completely overwrites the reg, thus clearing the PMUXEN bit. Now using pinMode
to disable the output and pinPeripheral
to reenable and it works :)
Great library, thanks!
Hi,
I was trying to disable the output pin while the pixels are not used so I can also disconnect pixel power for power saving. When using the basic non-DMA pixel library this works fine, but when using the ZeroDMA one it seems like reenabling the pin does not suffice to get output back working.
Arduino board: Adafruit Feather M0 Proto
Arduino IDE version (found in Arduino -> About Arduino menu): 2.1.0
List the steps to reproduce the problem below (if possible attach a sketch or copy the sketch code in too):
For testing I simply used the strandtest and added the following to the end of the loop function:
The first delay was to make sure it had enough time to actually write the cleared data, second delay is to actually simulate the time when the output is not required.
I see this library is constantly outputting the data to the pixels, but is there any way to still temporarily disable the output pin to save on power?
Cheers, Chris