Skip to content

Tiryoh/robosys2016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robosys2016

Simple Device Driver for Raspberry Pi 3 (Raspbian)

Description

When you insmod this driver, myled0 and myswitch0 will appear in /dev.

/dev/myled0 drives led connected to GPIO25
/dev/myswitch0 gets status connected to GPIO20

Requirements

Installation

Hardware

Connect led, resistors, switch to Raspberry Pi as shown in schematic.

Software

First, download this repository.

git clone https://github.com/Tiryoh/robosys2016.git

Next, move into robosys2016 directory and run make command.

cd robosys2016
make && make install

Usage

After installation, test gpio check scripts.
The LED connected to GPIO25 will blink.

./scripts/test_gpio25.sh

If you want to turn off the LED when you push the switch button connected to GPIO20, run this command.

./scripts/sw_to_led.sh

Reference

https://github.com/rt-net/RaspberryPiMouse

License

This repository is licensed under the GPLv3 license, see LICENSE.

About

Simple Device Driver for Raspberry Pi 3 (Raspbian)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published