I've looked around but have not found if you can use this code
int powOn = 3;
void setup () {
pinMode(powOn, OUTPUT);
}
void loop () {
powOn = 1 // Is this usable
}
}
// or should it just be done this way
digitalWrite(powON, HIGH); // is this the only usable way
I guess what I'm asking is can you just set a pin high by using a 1 or do you have to use digitalWrite for
outputs