Pages: [1]   Go Down
Author Topic: C language program on Arduino Duemilanove  (Read 390 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
smiley
Jewel.
Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanx for clarifying that tuxduino!
Logged

Pages: [1]   Go Up
Jump to: