Go Down

Topic: C language program on Arduino Duemilanove (Read 492 times) previous topic - next topic

Jewel

Hi!
This is the first time I am using an Arduino.
I actually wrote a program in C language (had only decided on using ATMega328 then) and picked one of the Arduinos (Duemilanove to be specific) later .
Can I use my C program as it is on the Arduino? Or do I have to use the functions like AnalogWrite etc mentioned in the Arduino library?
I can post the code written in C if needed.   
Please guide!
:)
Jewel.

tuxduino

Arduino is programmed in C/C++. The Arduino core libraries provide a nice set of functions that makes it easier to do simple (and not-so-simple) things. The hardware is always reachable, though. Nothing prevents you from directly accessing the uP registers, for example.
Therefore you're not "forced" to use analogWrite() and such. They're just convenient.

Jewel


Go Up