Porting a simple sketch (Blink a diode) from Arduino IDE to AVR studio on Windows

Status
Not open for further replies.

joseMiguel

Member level 5
Joined
Jan 10, 2011
Messages
86
Helped
10
Reputation
20
Reaction score
10
Trophy points
1,288
Location
Montpellier FRANCE
Visit site
Activity points
1,967
Hi,

I don't find the library where the digitalWrite(led, HIGH) is defined.
I have only find the declaration of the prototype in Arduino.h.

I would like to make the software migration from the Arduino IDE (sketch) to AVR studio 6.0
Could you please help me.
Thank you.
José Miguel.
 

The LED define like


Code C - [expand]
1
#define LED 1



will be defined in main program file.

HIGH will be defined as 1.

The function just sets 1 to LED or pin 1. See if the definition is inside WProgram.h file.
 

Hi,

The solution is quite easy.

I the AVR Studio 6.0 put those files
in the src directory: wiring_digital.c
in the include directory:wiring_private.h, pins_arduino.h and Arduino.h

Thank you
Jose Miguel
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…