Hello, having some trouble using the functions to set I/O registers as described here:
https://www.pjrc.com/teensy/pins.html
Using the Arduino IDE, PORTC and DDRC are recognized, but PORTE and DDRE are not. We are not defining either PORTC or PORTE. The goal is to tri-state PTE0 (Teensy pin 31). What are we doing wrong?
Menu:1003: error: 'PORTE' was not declared in this scope
PORTE |= (0<<0); // https://www.pjrc.com/teensy/pins.html see I/O Registers
^
Menu:1004: error: 'DDRE' was not declared in this scope
DDRE |= (1<<0);
^
Thanks much for any suggestions.
https://www.pjrc.com/teensy/pins.html
Using the Arduino IDE, PORTC and DDRC are recognized, but PORTE and DDRE are not. We are not defining either PORTC or PORTE. The goal is to tri-state PTE0 (Teensy pin 31). What are we doing wrong?
Code:
//Input PIN
PORTC |= (0<<1); // https://www.pjrc.com/teensy/pins.html see I/O Registers
DDRC |= (1<<1);
//Enable PIN
PORTE |= (0<<0); // https://www.pjrc.com/teensy/pins.html see I/O Registers
DDRE |= (1<<0);
Menu:1003: error: 'PORTE' was not declared in this scope
PORTE |= (0<<0); // https://www.pjrc.com/teensy/pins.html see I/O Registers
^
Menu:1004: error: 'DDRE' was not declared in this scope
DDRE |= (1<<0);
^
Thanks much for any suggestions.