$ make
$ mknod -m 666 /dev/gpio_driver c <major_number> <minor_number>
To retrieve major and minor number, you can use $ cat /proc/devices
command to find appropriate values for your environment and module.
Reading directly from nod file
$ cat /dev/gpio_driver
$ cd ./test_driver_visualisator
$ gcc keyboardVisualisator.c -o vis
$ ./vis
$ cd ./test_driver_game
$ gcc main.c keypadMatrix.c board.c sprite.c -o game
$ ./game
Connect GPIO pins with Keypad Matrix in reference to:
|
|
Youtube video: https://youtu.be/xZTHvI5SSF8