Go Down

Topic: AVRProjectIDE with version of Arduino 1.0 (Read 1 time) previous topic - next topic


Hi to all,

Can some one has success using the perfect editor AVRProjectIDE with the new Arduino 1.0
I have go to Tools --> Editor Settings --> and i select for the Core files: C:\arduino-1.0\hardware\arduino\cores\arduino

and for the libraries:  C:\arduino-1.0\libraries

but when i compile i got errors the first of that is:
file                   line  Where           Message
wiring_digital.c   138  'digitalWrite'  undefined reference to 'port_to_output_PGM'


Can some one please help me ?

Thank you in advance.


Did you include Arduino.h like the Arduinbo IDE does?
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


Hello Dear johnwasser,

Thank you very much for the reply and sorry for the delay on my reply.

I was try to add on top the #include "Arduino.h"

But no working   :(


Did you include the appropriate pins_arduino.h like from hardware/arduino/variants/standard/pins_arduino.h?
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


Hello Dear johnwasser,

Thank you very much for the reply.

I was try again today with you're tip, i copy the file pins_arduino.h in Core folder and i was try to compile the bellow code:

Code: [Select]

#include <Arduino.h>
//#include <pins_arduino.h>

int power;

float sensor=0;
float input=0;//voltage read on pin 2
float celsius=0;
float fahrenheit=0;
void setup(){

void loop(){
  power= digitalRead(3);
  if (power==HIGH){
  sensor = analogRead(A0);
input = (sensor*5000)/1024; // convert raw sensor value to millivolts       
celsius = input/10;         // convert millivolts to Celsius
fahrenheit = ((celsius * 1.8)+32); // convert celsius to fahrenheit
Serial.println(" sensor read");
Serial.println(" --------------------------");
Serial.print("Temperature: ");
Serial.println(" degrees C");
Serial.print("Temperature: ");
Serial.println(" degrees F");
Serial.println("_ _ _ _ _ _ _ _ _ _ _ _ _ _  ");
delay (2000); // wait a second, otherwise the serial monitor box will be too difficult to read

Without luck :(

The only good it was the errors it is only 3 from many it was before :-)

Look the error if you can please, maybe you can understend more than me. ( I am sure for this :-) )


Looks like you have to add:
Code: [Select]

int main()
    while (1)

Not sure why it's complaining about pulseIn().  Looks like it might be declared twice.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

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