thanks i don't have much choice then i have to use digital write. no old school stuff.
but how state like on button press it inverts the old state of the port. what we do in PIC just "portd.f1 = ~portd.f1" for example.
it really helps thank you so much. its kind a big adjustment for migrating to arduino.
digitalWrite(13, digitalRead(13)); // inverts the state of an output pin.
digitalWrite(13, !digitalRead(13)); // inverts the state of an output pin.
what we do in PIC just "portd.f1 = ~portd.f1" for example. it actually makes the code compact with this method.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16