Go Down

Topic: Help! with digitalWrite function (Read 2665 times) previous topic - next topic


I didn't know where to post this since the software forum is read-only, hope this is okay.

I want to know if there's an "equivalent" code in C for the digitalWrite, analogRead and Serial.Print functions. I'm making a program that can read the values of a 3-axis accelerometer and it worked on the Arduino-0022. But I need to do it in AVR Studio, so I need to "translate" this code to C.

Can anyone help me with this? I'm new with Arduino. I have the Arduino Uno with the ATMega328p.



the software forum is read

No it is not. That is the old forum, look at the top of the page second down.

To output something you just write to the correct address, see:-


Why not just include the relevant arduino header files? Then there's no porting necessary!
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?"
The cat asked, "Where do you want to go?"
"I don't know," Ali

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131