bigjosh / SimpleNeoPixelDemo

A demonstration showing how easy it can be to drive WS2812 NeoPixels
MIT License
223 stars 59 forks source link

Update SimpleNeopixelDemo.ino #2

Closed xuio closed 10 years ago

xuio commented 10 years ago

fix for '__builtin_avr_delay_cycles' was not declared in this scope

bigjosh commented 10 years ago

I do not think a simple for() loop will compile to exactly the right number of cycles, so you really want to use the built-in function. I wonder why you are not getting that function - it is part of the GCC compiler used by the Arduino IDE and it works on ever machine I have. Are you sure you are using the latest version of the IDE, currently 1.5.6-r2? Have you modified any of the GCC options in the install? Thanks!

xuio commented 10 years ago

I was getting this error while using the latest release (1.0.5) and the latest beta (1.5.6-r2). I haven't done any modifications to the compiler. I tried compiling for the Mega and the Uno.

xuio commented 10 years ago

I suppose this is a mac only issue it compiles fine on both Windows and Linux