Guest User

Untitled

a guest
Jul 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. void setup() {
  2. pinMode(4, OUTPUT);
  3. pinMode(2, INPUT);
  4. pinMode(3, INPUT);
  5. attachInterrupt(digitalPinToInterrupt(2), ISR_INTx, RISING);
  6. }
  7.  
  8. void ISR_INTx() {
  9. digitalWrite(4, digitalRead(3));
  10. }
  11.  
  12. void loop() {
  13. }
Add Comment
Please, Sign In to add comment