tuupola / avr_demo

Atmel demo code. Does not use any Arduino libraries. I want to learn this the hard way (tm).
https://appelsiini.net/
80 stars 62 forks source link

4x4_matrix_part_1: compiler error RE: __builtin_avr_delay_cycles #5

Open elilienstein opened 6 years ago

elilienstein commented 6 years ago

builtin_avr_delay_cycles expects a compile time integer constant” I looked that up in avr_libc documentation for<util/delay.h> and found this: "The implementation of _delay_ms() based on builtin_avr_delay_cycles() is not backward compatible with older implementations.”

Adding the macro DELAY_BACKWARD_COMPATIBLE fixed it.