Hey I got this code when button is pushed it the led bar will light up till max 8 leds on and a corresponding strength will go as motor speed, I'm tryin to figure how to set it the other way around meaning that lets say you pushed it and got 4 leds, now you push diff button and can lower it, it seems I cant figure what to change here, Ta
That code is not complete.
I cant figure what to change here
Start by identifying how the code that you didn't post detects a button press. You need to detect the press of a second button
In the small portion of code that you did post what is it that increments the number of pixels to be displayed ?
When you call the power() function the current code always increments the number of pixels to be displayed. You will need to determine which button has been pressed and either increment or decrement that number before displaying the LEDs and don't forget that when you need to display fewer LEDs that some of the higher ones need to be turned off first
Hi,
Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Thanks.. Tom..
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.