westfw:
CS Purists didn't like it because it wasn't typed. I claim it never needed to be typed...
Either that or the long list of macro related failures tends to lean us away from #define. (I helped someone with such a problem just this week. Fortunately the problem was trapped by the compiler.)
Add your #define to this snippet...
void BlinkIt( int LED )
{
for ( int i=0 ; i < 10; ++i )
{
digitalWrite( LED, HIGH );
delay( 250 );
digitalWrite( LED, LOW );
delay( 250 );
}
}
Use a typed constant instead. Trouble averted.
westfw:
(better NOT typed than WRONG typed?)
Has merit.
const byte LED = 1034;
void setup()
{
pinMode( LED, OUTPUT );
}
void loop() {}
No warning or error. Ugh.