edward0429 / arduino

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

RC2 #697

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Include a file using the keyword byte
2.
3.

What is the expected output? What do you see instead?
Sketch should compile OK.

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

Please provide any additional information below.

Original issue reported on code.google.com by fergus.d...@gmail.com on 27 Oct 2011 at 12:11

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry, I didn't quite understand this report.  The "BYTE" keyword has been 
removed from Arduino 1.0, use Serial.write() instead of Serial.print(BYTE).

Original comment by dmel...@gmail.com on 27 Oct 2011 at 3:21

GoogleCodeExporter commented 8 years ago
Try downloading and compiling the code. Maybe I should have said byte variable 
type instead of keyword. For example:
 const byte EPin = 8; // enable pin
will compile fine in the main file but not in an include file. For me this is a 
big problem, since I would like to draw pictures on a screen and the best way 
is to define a byte array in an include file.

Original comment by fergus.d...@gmail.com on 27 Oct 2011 at 9:20