My code, there are no errors. I removed a majority of the code just for the purposes of it fitting in here, however, I didn't remove anything important. The blinker is stuck on Left Blinker. It's either my code, or wiring.
const int buttonLeft = 1;
const int buttonRight = 0;
const int buzzer = 19;
//SPEED OF BLINK
int speedx = 50;
I don't see how those buttons are going to do anything; since you're not using the internal pull-up resistors, there should be 3 connections to the button: input pin, resistor to ground/vcc, vcc/ground depending on where the resistor goes to.
Arrch:
I don't see how those buttons are going to do anything.
Explain please.
Edited my post. It would be easier, though, to just remove the resistor, enable the internal pullups, and connect one of the right side pins to the input pin and one of the left side pins to GND.
Arrch:
I don't see how those buttons are going to do anything.
Explain please.
Edited my post. It would be easier, though, to just remove the resistor, enable the internal pullups, and connect one of the right side pins to the input pin and one of the left side pins to GND.
I don't understand..? What's an internal pullup? So I tried this, but the right blinker keeps going until I press the left button, then it goes left. I release the left button and it goes right again. Why is this?
tylerv:
I don't understand..? What's an internal pullup? So I tried this, but the right blinker keeps going until I press the left button, then it goes left. I release the left button and it goes right again. Why is this?
I discovered that button2 infinitely = HIGH. Is something here defective? When I commented out the right_Blinker(); the left blinker would work if I just touch it. Something's wrong with the right side.
Don't use pins 0 or 1 they are used for serial. Move your switches to 2 and 3. I also recommend using the internal pullup resistors. You have no debouncing strategy.
Remove all the external resisters to your buttons, and connect one side of the button to GND and the other side to the input pin. Now, when you press the button, the input pin should read "LOW". Change your code as needed.