Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arturobp3/keyboard_driver
Linux driver which uses the keyboard leds in order to do two games. The purpose of this project was to know how the Linux kernel works
https://github.com/arturobp3/keyboard_driver
kernel-module keyboard-driver linux linux-driver unix
Last synced: 28 days ago
JSON representation
Linux driver which uses the keyboard leds in order to do two games. The purpose of this project was to know how the Linux kernel works
- Host: GitHub
- URL: https://github.com/arturobp3/keyboard_driver
- Owner: arturobp3
- Created: 2019-03-03T14:03:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-03T15:19:21.000Z (almost 6 years ago)
- Last Synced: 2024-11-17T08:19:12.479Z (3 months ago)
- Topics: kernel-module, keyboard-driver, linux, linux-driver, unix
- Language: C
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Keyboard Driver for Linux
# How can I run this program?
Follow these steps to test the driver:
Compile "chardev_leds.c" file
You can use the makefile I provide you. In the directory where files are located, type:
```
make
```
Insert "chardev_leds.ko" in the Kernel
```
sudo insmod chardev_leds.ko
```
Create a new device file managed by the driver
```
sudo mknod -m 666 /dev/leds c 243 0
```
We can check if we did these steps well, typing:
```
cat /dev/leds
```
This command will print a messageCompile "leds_user.c" file
```
gcc -Wall -g leds_user.c -o leds_user
```
Run it
```
sudo ./leds_user
```
![]()
![]()
# When you don't want to test this driver any more:
Remove "chardev_leds.ko" from the Kernel
```
sudo rmmod chardev_leds
```Remove "/dev/leds"
```
sudo rm -r /dev/leds
```