From the Forums: Led 32×32 Kernel Module #piday #raspberrypi @Raspberry_Pi

from From the Forums: Led 32×32 Kernel Module #piday #raspberrypi @Raspberry_Pi
by Jessica

NewImage

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 here.

Kernel Module Supports:

  1. All GPIO Functions setbits(), clearbits(), etc.. via ioctl calls.
  2. 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.
  3. Supports (via sysfs) autocreation of the /dev/gpioleddriver device. Included in repo will be udev .rules file for setting up device for user access.
  4. user land application (led-matrix) has been modified to use the ioctl calls instead of GPIO. No more need for sudo 🙂
  5. Kmod can be compiled to use either ioremap or sysfs for access to gpio registers. Both tested.

Read more here and here.


2358Each 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!

Comments