Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Latest commit

 

History

History
60 lines (39 loc) · 711 Bytes

README.md

File metadata and controls

60 lines (39 loc) · 711 Bytes

pi-snap-sensor-driver

Introduction

Project for pi-snap sensor driver

Parts list

  • Ultrasonic sensor
  • Red LED
  • Green LED

Kernel directory path

~/linux-rpi

How to use

1. Build

../pi-snap-sensor-driver/driver/

$ make

../pi-snap-sensor-driver/app/

$ make

2. Load device driver

../pi-snap-sensor-driver/driver/

$ insmod sensor_driver.ko
$ sh mknod.sh

3. Modify IP address

../pi-snap-sensor-driver/app/sensor_lib.h

...
#define IP "127.0.0.1"    // Here!
...

4. Run application

Before running an application, you must ensure that the socket server is running!

$ ./sensor_app.out