GithubHelp home page GithubHelp logo

pjdu / ledpanel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tanzilli/ledpanel

0.0 0.0 0.0 110 KB

Linux Driver for 32x32 RGB LCD Panels and Arietta G25

License: GNU General Public License v2.0

C 99.82% Makefile 0.18%

ledpanel's Introduction

#Linux driver for a 32x32 RGB led panel

Bit banging driver to manage a RGB led panel using the Arieta G25 Linux Embedded SoM

##Installation

Move inside the linux/drivers Linux source directory and clone the ledpanel git repository:

$ git clone git://github.com/tanzilli/ledpanel.git

add the following line in linux/driver/Makefile:

obj-$(CONFIG_LEDPANEL)   += ledpanel/

add the following line in__linux/driver/Kconfig__:

source "drivers/ledpanel/Kconfig"

Run make menuconfig and enable the ledpanel driver:

Device Drivers  --->
	<*> RGB led panel bit banging driver (NEW) 

and the High Resolution Timer Support:

General setup  --->
	Timers subsystem  --->
		[*] High Resolution Timer Support  

##Using ledpanel driver from user space

Create a nx32x32*3 image byte array (24 bit for any pixel) (where "n" is the number of modules in a panel) and save in on /sys/class/ledpanel/rgb_buffer or just type (n=1):

dd if=/dev/urandom of=/sys/class/ledpanel/rgb_buffer bs=3072 count=1

to show a random pattern.

More examples are available on:

##Multi module upgrade

Multi module panels are now supported. As there is no known way to detect from I/O pins how many modules are attached to the panel, the exact number of modules has to be statically specified at module load time

insmod ledpanel.ko nmodule=3

Moreover, the resolution can be dynamically read by the application program via a couple of attributes that have been purposedly added to the driver

cat /sys/module/ledpanel/parameters/height
32

cat /sys/module/ledpanel/parameters/width 
96

All utilities in contained in led-utils repository have been updated to comply with this new model, reading at startup the real led panel size. See the specific github repository.

#Where to buy:

#Licence terms

Copyright (C) 2015 Sergio Tanzilli, All Rights Reserved. [email protected] http://www.acmesystems.it/ledpanel

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

ledpanel's People

Contributors

amontefusco avatar tanzilli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.