0

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

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!


Join 4,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

Learn “How Computers Work” with Bill Gates, Ladyada and more – From Code.org !

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 — What all businesses can learn from the maker movement

Wearables — Don’t be wooden

Electronics — Watch your micro!

Biohacking — Machine Learning Helps to Grok Blood Test Results

Python for Microcontrollers — CircuitPython 3.0.0 Alpha 4 Released!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.