Update temp.ino

This commit is contained in:
Jarno Lehtinen 2018-12-07 14:34:48 +02:00 committed by GitHub
parent 564265000f
commit cdfc1767e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -46,8 +46,6 @@
// RX = D17,PB0
// TX = -,PD5
volatile uint8_t output1;
volatile uint8_t output2;
volatile uint16_t last_interrupt;
volatile uint8_t *ptr;
@ -76,7 +74,7 @@ ISR(INT3_vect, ISR_NAKED) { // falling edge, output joystick 4
ISR(INT3_vect_part_2) { ptr = &GPIOR1; last_interrupt = TCNT1; }
void setup() {
ptr = &output1;
ptr = &GPIOR0;
pinMode(5, INPUT_PULLUP); // pin5 (PC6) is input
pinMode(7, INPUT_PULLUP); // pin7 (PE6) is input