I'm trying to integrate inside the "blinking led" exercice for have a feedback.
int ledPin = 13; // choose the pin for the LED
int VoutA = 10; // choose the input pinA (for a Vout A)
/int VoutB = 11; // choose the input pinB (for a Vout B)/
int valA = 0; // variable for reading the pinA status
/*int valB = 0; // variable for reading the pinA status #define PUSH_PULL true // false = OCR1A only, true = OCR1A + OCR1B /
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
digitalWrite(ledPin,HIGH); // declare LED status as HIGH/
pinMode(VoutA, INPUT); // declare pushbutton as input
/pinMode(VoutB, INPUT); // declare pushbutton as input/
}
/if (valA == HIGH); // && valB == LOW); // check if the input is HIGH
digitalWrite(ledPin, LOW); // turn LED OFF/
while (valA==HIGH) {
digitalWrite(ledPin, LOW);
}
/digitalWrite(ledPin, HIGH);/
Can you use the "Code" ("#") button above when posting code, and remove any stuff that is deliberately commented-out, please?
It's really hard to read stuff like that.