Go Down

Topic: ultrasonic library (Read 2212 times) previous topic - next topic

aeronautico

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

johnwasser

Change "WProgram.h" to  the new style "Arduino.h".  This changed in the 1.0 version of Arduino.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

teckel


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
My hardware: Arduino, Teensy 2.0, Teensy 3.2 & custom ATmega328
My libraries: NewPing, LCDBitmap, toneAC, toneAC2, NewTone, TimerFreeTone
My Projects: https://dogblocker.com & https://baconorbeer.com
My beer: Great Lakes Brewing Co. Lake Erie Monster

Go Up