I'm a complete newbie. I haven't played with C for years but I want something that no one makes and I think an AVR board will be the easiest way to make it.
Anyway I dusted off the old PRJC teensy 1.0 and managed to load the fast blinker. Yay.
Now I decided to try compiling blinky and when reading the source I saw something that might be problematic.
// Teensy 2.0: LED is active high #if defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB1286__) #define LED_ON (PORTD |= (1<<6)) #define LED_OFF (PORTD &= ~(1<<6)) // Teensy 1.0: LED is active low #else #define LED_ON (PORTD &= ~(1<<6)) #define LED_OFF (PORTD |= (1<<6)) #endif
Since I have a 1.0 I don't think that this will be a problem. But I am concerned that I can't find where these are defined. There is no comment in the code saying to define such and such if you have this or that board.
Where are these #defines (__AVR_ATmega32U4__ and __AVR_AT90USB128__)?