froussel / u8glib

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

Impossible to compile or verify the library #266

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

 Everytime a try to compile or verify the program it shows an error:

 " 'u8g' was not declared in this scope "

 also it shows that:

"HelloWorld.ino: In function 'void draw()':
HelloWorld:117: error: 'u8g' was not declared in this scope
HelloWorld.ino: In function 'void setup()':
HelloWorld:131: error: 'u8g' was not declared in this scope
HelloWorld.ino: In function 'void loop()':
HelloWorld:147: error: 'u8g' was not declared in this scope"

 I don't know what the hell is happening but its impossible to compile with that errors, and a follow the right way of every step of the instalation...  

Original issue reported on code.google.com by andremor...@gmail.com on 24 Jun 2014 at 2:01

GoogleCodeExporter commented 9 years ago
Let me try to help but we need more info Arduino hardware and software version 
please.  The first error means you have not declared the object u8g.  Make sure 
you have created the object as global. 

Original comment by philippe...@gmail.com on 24 Jun 2014 at 12:57

GoogleCodeExporter commented 9 years ago

 Im using Arduino Mega 2560, and the lasted version of the IDE (Arduino 1.0.5).

 I do not think has anything wrong with the program... after all, its an example of the u8glib library.

 And yeah, i thought that too, but usually these examples are ready to compile, aren't they? I never changed them, all the programs that i took from others libraries and try to compiling works 

Original comment by andremor...@gmail.com on 24 Jun 2014 at 1:38

GoogleCodeExporter commented 9 years ago
Did you uncomment your device?

Original comment by olikr...@gmail.com on 24 Jun 2014 at 9:27

GoogleCodeExporter commented 9 years ago
What do you mean?

Original comment by andremor...@gmail.com on 25 Jun 2014 at 2:57

GoogleCodeExporter commented 9 years ago
The examples are incomplete. At the beginning of each example, there is a list 
of devices. You MUST uncomment your device and add/modify your pins.

Original comment by olikr...@gmail.com on 25 Jun 2014 at 5:51

GoogleCodeExporter commented 9 years ago

 yeah now it works, thanks, stupid i was...

 but now when i compile the program it shows in the display many random points... 

Original comment by andremor...@gmail.com on 25 Jun 2014 at 7:43

GoogleCodeExporter commented 9 years ago
then, maybe you selected the wrong display type... 

Original comment by olikr...@gmail.com on 25 Jun 2014 at 8:06

GoogleCodeExporter commented 9 years ago
 THANKS, actually the display i bought was with a wrong nomenclature, so i changed the pins and worked!

Original comment by andremor...@gmail.com on 26 Jun 2014 at 1:18

GoogleCodeExporter commented 9 years ago
ok, cool, then i will close this issue...

Original comment by olikr...@gmail.com on 26 Jun 2014 at 4:37

GoogleCodeExporter commented 9 years ago

Original comment by olikr...@gmail.com on 28 Jun 2014 at 9:09