Go Down

Topic: Please help me: error 22 WProgram.h detail inside! (Read 2775 times) previous topic - next topic


Hi everybody,

My name is June, I'm new in Arduino field. Could you please help me I have problem when I run simple program that is Blink from Arduino 0018 with Macbook Pro. The error code show 22: error WProgram.h: No such file or directory in red color area and show 22: error: WProgram.h: No such file or directory In function 'void setup()': In function 'void loop()':
in black area. I's looking like a program not found path I'm not sure.



Can you post your code, please?
My crystal ball is at the repair shop today.
Some people are like Slinkies.

Not really good for anything, but they bring a smile to your face when pushed down the stairs.



Thanks for respond. The code below it's a default code from Arduino. Just want to test board I bought it today from some shop at Thailand.


Turns on an LED on for one second, then off for one second, repeatedly.

The circuit:
* LED connected from digital pin 13 to ground.

* Note: On most Arduino boards, there is already an LED on the board
connected to pin 13, so you don't need any extra components for this example.

Created 1 June 2005
By David Cuartielles


based on an orginal by H. Barragan for the Wiring i/o board


int ledPin =  13;    // LED connected to digital pin 13

// The setup() method runs once, when the sketch starts

void setup()   {                
 // initialize the digital pin as an output:
 pinMode(ledPin, OUTPUT);    

// the loop() method runs over and over again,
// as long as the Arduino has power

void loop()                    
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second

I use USB to Serial to syn with my Macbook Pro.



Could you post the full error message? It looks like that you are using the canned version of the blink code so everything should work if the environment setup is correctly. I assume that you have installed all the required tools?


Thank you for every respond, I got it, The problems came from path of directory I forgot copy my board's libraries to main libraries folder.

Thanks & Regards,
~ i J u n e ~

Go Up