Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- pinMode(4, OUTPUT);
- pinMode(2, INPUT);
- pinMode(3, INPUT);
- attachInterrupt(digitalPinToInterrupt(2), ISR_INTx, RISING);
- }
- void ISR_INTx() {
- digitalWrite(4, digitalRead(3));
- }
- void loop() {
- }
Add Comment
Please, Sign In to add comment