Demonstration for the Ultrasonic driver. More...
#include <stdio.h>
#include <stdint.h>
#include "pico/stdio.h"
#include "pico/time.h"
#include "ultrasonic/ultrasonic.h"
Macros | |
#define | ECHO_PIN 1 |
Echo pin for the ultrasonic sensor. | |
#define | SLEEP_1S 1000 |
#define | TRIG_PIN 0 |
Trigger pin for the ultrasonic sensor. | |
Functions | |
int | main (void) |
Main function for the ultrasonic demo. More... | |
Demonstration for the Ultrasonic driver.
int main | ( | void | ) |
Main function for the ultrasonic demo.
References ECHO_PIN, SLEEP_1S, TRIG_PIN, ultrasonic_get_cm(), ultrasonic_get_in(), and ultrasonic_init_pins().