#GNU #Linux #Tutorial #Driver #DriverDevelopment
Let's take a closer look at USB. In this series of tutorials we will learn how to implement an USB device on a microcontroller and interact with it over our GNU/Linux OS from user- and kernelspace.
Today we will control the 7 segment display of our Atmega32U4 USB device with control transfers from kernelspace. We will write a driver which creates a procfs file. By writing to this file the driver updates the value of the display, by reading from it, the driver will read back the displayed value.
You can find the source code here:
https://github.com/johannes4Linux/usb_tutorial
Here is a link to the video where I showed how to implement procfs files:
https://www.youtube.com/watch?v=S9LA054pY4M
You want to support my work? You can buy me a coffee here: https://www.buymeacoffee.com/johannes4linux
If you want to contact me, you can find my E-Mail on www.gnu-linux.rocks
You want to learn more? Check out my playlist:
• GNU/Linux & USB
Resources for this video:
https://makelinux.net/ldd3/chp-13-sect-4.shtml
5 Comments