Project for pi-snap
sensor driver
- Ultrasonic sensor
- Red LED
- Green LED
~/linux-rpi
../pi-snap-sensor-driver/driver/
$ make
../pi-snap-sensor-driver/app/
$ make
../pi-snap-sensor-driver/driver/
$ insmod sensor_driver.ko
$ sh mknod.sh
...
#define IP "127.0.0.1" // Here!
...
Before running an application, you must ensure that the socket server is running!
$ ./sensor_app.out