News for hackers. Stuff that matters.
Re:Learning to Program the Arduino by randomdata on Wednesday April 11, 2012 @05:09PM (#3829661)
The syntax is actually straight up C++, though you can also use C code in the Arduino IDE if you give your file a .c extension.
Re:Learning to Program the Arduino by ecto on Wednesday April 11, 2012 @06:35PM (#3829987)
Or if you're bashful when confronted with C syntax, you can use my Node library :)

https://github.com/ecto/duino

Re:Learning to Program the Arduino by bigiain on Wednesday April 11, 2012 @08:01PM (#3830274)
Ummm, _really?_ Programming _microcontrollers_ in JavaScript?

I think you just broke my brain…

(So has somebody run Zed Shaw's Fibbonacci sequence code on it yet?)

Re:Learning to Program the Arduino by bri3d on Thursday April 12, 2012 @10:20AM (#3832388)
If you read the docs, he's not programming the microcontroller in JavaScript - just running a native shim on the microcontroller and then communicating via serial. So it's basically a node.js library to use an Arduino as a dumb I/O card for your PC, not to program the Arduino in JS.
Re:Learning to Program the Arduino by dkersten on Wednesday April 11, 2012 @07:21PM (#3830147)
and all the built in stuff is just plain C++ too and can be found in the lib directory.

I really like how easy it is to hack prototypes together with Arduino. I recently moved my own prototypes from PIC24 to a Teensy++ (a tiny little Arduino compatible board) and its made life so easy! Its a lot of fun to play with and the wealth of libraries makes prototyping a breeze. Just today I was tinkering with ultrasonic sensors and with bluetooth modules.

For end products, I'd use C and LUFA for atmels rather than Arduino (or a PIC24 if I want 16bit or some of the other fancy PIC24 features, like 40MHz Fcy on PIC24H! since I have no experience with non-8bit Atmel micros)

Re:Learning to Program the Arduino by TazeTSchnitzel on Wednesday April 11, 2012 @07:20PM (#3830141)
It's C++ made to look like Processing, for some reason.
Re:Learning to Program the Arduino by randomdata on Wednesday April 11, 2012 @10:04PM (#3830660)
Arduino was built for the arts community who were already using Processing, allowing them to take what they already knew, and apply it to hardware. That's why it looks like Processing.

Of course, the Arduino board isn't limited to the Arduino programming environment. Hackers tend more towards programming the AVR directly, providing greater performance and environments more familiar to them.

Re:Learning to Program the Arduino by bigiain on Wednesday April 11, 2012 @09:42PM (#3830589)
FWIW, it's not "made to look like Processing", it _is_ Processing. They use (or at least built on top of) the Processing IDE.
Re:Learning to Program the Arduino by randomdata on Wednesday April 11, 2012 @10:07PM (#3830671)
They are different. Processing is built on Java, Arduino is built on C++.
Re:Learning to Program the Arduino by bigiain on Wednesday April 11, 2012 @10:20PM (#3830716)
That's true for the _languages_, but the Arduino development environment is built on Processing, see second para here:

http://arduino.cc/