Closed xcompass closed 10 years ago
Hi Pan,
I did mention to not use it on this page, but it is easily overlooked. http://www.elcojacobs.com/using-shiftpwm-to-control-rgb-leds-with-arduino/ Pin 12 is the SPI MISO pin (Master In Slave Out). The pin is set to input when SPI is used in master mode, as done by ShiftPWM. It can therefore not be used as latch output.
Elco
On 6 October 2013 10:32, Pan Luo notifications@github.com wrote:
I'm trying to change the latch pin to digital pin 12 on arduino uno. It doesn't work. I tried use default 8, also 9, 10. They all worked. Just pin 12 doesn't work. Do you know why? Thanks.
const int ShiftPWM_latchPin=12;
— Reply to this email directly or view it on GitHubhttps://github.com/elcojacobs/ShiftPWM/issues/2 .
Thanks. I did scan the page but overlooked it. I was focusing on the examples came with the library. Maybe put it in the examples around latchpin setting line?
I'm trying to change the latch pin to digital pin 12 on arduino uno. It doesn't work. I tried use default 8, also 9, 10. They all worked. Just pin 12 doesn't work. Do you know why? Thanks.
const int ShiftPWM_latchPin=12;