You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded the Arduino ide to use an hc sr04 ultrasonic sensor to measure distance. In the code, I used the pulseIn function to measure the pulse on time of the echo pin. but the function seems to not be defined. The error is sketch\sketch_apr12b.ino.cpp.o: In function `loop': D:\ArduinoCode\sketch_apr12b/sketch_apr12b.ino:28: undefined reference to `pulseIn' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Raspberry Pi Pico.
The code is as follows:
I downloaded the Arduino ide to use an hc sr04 ultrasonic sensor to measure distance. In the code, I used the pulseIn function to measure the pulse on time of the echo pin. but the function seems to not be defined. The error is
sketch\sketch_apr12b.ino.cpp.o: In function `loop': D:\ArduinoCode\sketch_apr12b/sketch_apr12b.ino:28: undefined reference to `pulseIn' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Raspberry Pi Pico.
The code is as follows:
The text was updated successfully, but these errors were encountered: