ilikecats567 / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Button example sketch has syntax error #901

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load File -> Examples -> Digital -> Button
2. Compile it
3. Get error message

What is the expected output? What do you see instead?

I get:

Button:1: error: expected initializer before numeric constant

I expect no errors.

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

Version 1.0. Mac OS/X. Board: Uno.

Please provide any additional information below.

The first line of the sketch reads:

byte LEDpin 13; 

It should read:

const byte LEDpin = 13; 

Original issue reported on code.google.com by n...@gammon.com.au on 26 Apr 2012 at 12:04

GoogleCodeExporter commented 9 years ago
Hmmm - I appear to have got confused.

I withdraw this bug report, as I can no longer reproduce it. 

Sorry about that.

Original comment by n...@gammon.com.au on 26 Apr 2012 at 12:10

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 9 May 2012 at 12:40