Pages: [1]   Go Down
Author Topic: ultrasonic library  (Read 817 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello. I need help with the library of ultrasonic sensor. After instaling the library in arduino libraries none of the examples working. Appears an error with the librarie
In file included from UltrasonicDemo.cpp:12:
C:\Users\Pedro\Documents\arduino-1.0\libraries\HCSR04Ultrasonic/Ultrasonic.h:20:22: error: WProgram.h: No such file or directory
I need help please. What can i do?
Thanks
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 179
Posts: 8067
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Change "WProgram.h" to  the new style "Arduino.h".  This changed in the 1.0 version of Arduino.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Toledo, OH
Offline Offline
Sr. Member
****
Karma: 19
Posts: 455
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello. I need help with the library of ultrasonic sensor. After instaling the library in arduino libraries none of the examples working. Appears an error with the librarie
In file included from UltrasonicDemo.cpp:12:
C:\Users\Pedro\Documents\arduino-1.0\libraries\HCSR04Ultrasonic/Ultrasonic.h:20:22: error: WProgram.h: No such file or directory
I need help please. What can i do?
Thanks

Try a newer ultrasonic library that not only works with 1.0.1 and previous versions but also adds many new features:

Download NewPing library v1.4

NewPing support forum thread

Tim
Logged

Arduino Uno - Teensy 2.0 - Teensy 3.0 - Raspberry Pi Model B w/512MB RAM
My libraries: NewPing library - LCDBitmap library - toneAC library - NewTone library

Pages: [1]   Go Up
Jump to: