defined (__AVR_ATmega328P__) - ISR problem
Issue #15
resolved
I found NewPing as part of circuito.io, but my Arduino IDE v1.6.8 has issue with compiling Problem is that for Arduino uno we have avr-g++ parameter -mmcu=atmega328p and this is converted to: #define AVR_ATmega328P I added || defined (AVR_ATmega328P) to lines 299 and 327 on NewPing.cpp v1.8 source code If I'm not wrong, this need to be added to next version
Comments (3)
-
repo owner -
repo owner Not sure what's being asked here, compiles just fine with Arduino 1.6.13
-
repo owner - changed status to resolved
Closed due to lack of feedback and clarification.
- Log in to comment
No idea what you're talking about. Compiles just fine with Arduino IDE v1.6.13.
The Arduino IDE already does a -mmcu=atmega328p command line for avr-g++. Also, lines 299 and 327 are NOT for the ATmega328p microcontroller. Those lines are for the ATmega8, ATmega16, ATmega32, and ATmega8535.
Like I said, I have no idea what you're talking about. Please use punctuation in your reply as without it I'm a bit lost as to your train of thought.