Understanding the language, error messages, etc.
by HTel » Fri Jun 13, 2014 11:30 am
I'm just getting into C++ and I would like to know about the arduino library. I could not find the page any where. My simple question is the syntax for if and for and all those other commands other than those commands like "cout" and "cin", are they the same in arduino?
-
HTel
-
- Posts: 30
- Joined: Tue May 27, 2014 4:47 pm
by rodot » Fri Jun 13, 2014 1:01 pm
Gamebuino's code is compiled using avr-gcc, wich doesn't provide all the functions from C/C++.
Take a look at the
Arduino Reference and the
Gamebuino Reference to know which functions are available.
-
rodot
- Site Admin
-
- Posts: 1290
- Joined: Mon Nov 19, 2012 11:54 pm
- Location: France
-
by adekto » Fri Jun 13, 2014 1:28 pm
also just to point out cout and cin are part of standard library wich are more a thing for comand line stuff we dont realy have that,
but u can use this to display text on the lcd
- Code: Select all
gb.display.print("text");
u can find this and more in the
gamebuino reference
-
adekto
-
- Posts: 448
- Joined: Tue Feb 25, 2014 9:47 pm
- Location: belgium
by HTel » Fri Jun 13, 2014 3:19 pm
Thanks, I already saw the gamebuino library, but my search engine could not find "arduino" at all. The link connected, at least. I kinda did not know where to go so if the syntax for Arduino is like C++, I am ready to start making programs.
-
HTel
-
- Posts: 30
- Joined: Tue May 27, 2014 4:47 pm
Return to Programming Questions
Who is online
Users browsing this forum: No registered users and 6 guests