September 16, 2016 AT 10:00 am
From the Forums: Led 32×32 Kernel Module #piday #raspberrypi @Raspberry_Pi
Thanks to Marc_Karasek from the
Adafruit forums for sharing! Check out the repo here
I have created a kernel module to handle the GPIO interface for the LED 32×32 Panel.
This is based on the Src code from the Adafruit. I have some minor code cleanup todo but will then be pushing this to a repo on github.
Once that is done I will post the link to the repo
Kernel Module Supports:
All GPIO Functions setbits(), clearbits(), etc.. via ioctl calls.
Has a imalive function included. So at load time it will flash red/green/blue on the display to tell you it is alive and well.
Supports (via sysfs) autocreation of the /dev/gpioleddriver device. Included in repo will be udev .rules file for setting up device for user access.
user land application (led-matrix) has been modified to use the ioctl calls instead of GPIO. No more need for sudo 🙂
Kmod can be compiled to use either ioremap or sysfs for access to gpio registers. Both tested.
here and here.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Join 7,000+ makers on
Adafruit’s Discord channels and be part of the community! http://adafru.it/discord
CircuitPython in 2018 – Python on Microcontrollers is here!
Have an amazing project to share? Join the SHOW-AND-TELL every
Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for
Ask an Engineer!
Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/ Maker Business — American startups are having an increasingly smaller share of the market Wearables — Switch the advantage Electronics — Don’t float! Biohacking — Optimizing the Warm Up Python for Microcontrollers — CircuitPython 3.0.0 released!
Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at
No comments yet.
Sorry, the comment form is closed at this time.