Led Howto

From OESF

Revision as of 08:01, 25 September 2007 by Qf0Z7v (Talk | contribs)
Jump to: navigation, search

dustin hoffman streaker solo trabajos infantiles non voglio morire supercross 2000 latino bar loghi gratis nokia tutti pronti al salto dei 64 bit istituto agostino bassi lodi homepage hewlett maurice henry televisore meliconi bij 1300 themes nokia 6600 hotmail donne titina charlie chaplin pulito obiettivi nikon 2 8 starsplash alive page air conditioning giovani greche nude tl fx9b cecile deminibus www gq un medico in famiglia prima serie vol 05 tartarughe ninjia majho many montes www cueros com pe apple ipod 60 acconciature capello page deobe dena patrizia zea pam sick and tired video find difference gallery porno scambisti matera dogale symantec norton internet security elsi srl film umd per psp htc qtek 9000 tom tom tom tom gps receiver bt collegio odontoiatri lombardia music from the oc la nave delle donne maledette bastianini articolo regalo bologna tv irradio televisori lcd telefonini con fotocamera page teac cd chat free hard disk ata100 toner 3015 aerocool deepimpact premios juv lo scandalo del giorno batteria infolithium sony tommy hanks gallery mariagiovanna elmi video erotici mpg treo 600 2004 free sexmovie un nuovo titolo xbox live dal giappone negozi di fiori ottica gold url homepage programma recupero file cancellato asus scheda madre don t tell me avrile lavigne le avventure di sonic site c3 elegance unidad de mando porografia gratis ghiaccioli bennato sembra ieri agenzia matrimoniale romania lcd 7 amstrad max co collezioni primavera estate 04 maestrine fastwebnet it piedi torino hotel tunisi www alqaeda it beyond crack assicurazioni automobilistiche url lesbian girls batteria nb3l quarzo lampada fiat panda 1 1 videogiochi mafia king lear palmare cellulare con gps chat sardegna googlre ramsteins martino map www macroedizioni it through the barricade t630 cellulari sony ericsson falcone pistas de tego calderon shopping notebook dimage xg aste immobiliare roma site noticias actuales per qvr51 casio link marconi carolina mxf show foto fake di alessia grand hotel villa igiea palermo diane baker kiss lettore dvd divx hard disk alarm storm sneak volvo v50 momentum 1 6 diesel ferrari fan club incontri trapani valerio vermiglio il deputato del baltico bmw 318 ci diritto privato francesco galgano microsoft office publisher 2003 singolo 24 guerre foto e video musicali frozen madonna idee in carta snc jane powertrack 360 autodromi street fighter alpha 3 e monster hunter freedom in europa tacco azzurro dimmi quello che vuoi knickerbocker magazine firefox mac www ragazze18 it url link rev disk auto scoppio audi yamaha rx v 1500 jvc everio 200 trappola per due url index magazzini castello di proceno curs bnr nessun gioco online in winning eleven 8 muvo creative v200 1gb tele dehon iq game hurghada sofitel linksys befvp41 micheal bubble moondance homepage gatto panceri voli matera x vol 02 modem adsl per mac calcio 2002 gentiana ismaili uomini mature antichi simboli della lettera f labtec desktop edge lcd 21 pollici suzanne stokes istruzioni the sims d t panasonic tx32lx500 jbl subwoofer driver motorola v180 nokia 76 land cruiser 95 http www kaza com sabine dove vai samsung p244 niuatoputapu humax dtt5000 mhp hard maxtor 250 marco aurelio ragazze muscoli yannina gonzalez programma sky mostra urbino magic carte trasformatori di uscita audio mamma scopa figli site tsu Howto utilize the led's on the Zaurus

Intro

The Sharp Zaurus has two led's on the device that can be controled from applications. This device can make the led turn on and off and blink at several different speeds as defined in "sharp_char.h"

Basics

If an application want to use the led it needs to do at least the following three things:

Include sharp_char.h in the application to use the headers defines. The header is installed in : /opt/Embedix/tools/arm-linux/include/asm/. You may want to manually copy the file locally or create a sym-link to the file into the local directory.

 #include <sharp_char.h>

Open /dev/sharp_led. Use normal error checking here.

 int fd= open("/dev/sharp_led", O_WRONLY);

Make an ioctl cal on /dev/sharp_led replacing LED_COLLIE_0_DEFAULT with the desired action from sharp_char.h

 ioctl(fd, SHARP_LED_SETSTATUS, LED_COLLIE_0_DEFAULT);

Example

Download example source and binary led demo is in a tar.gz file here. Simply copy the led executable over to the Zaurus and run it from the command line.

This gui test program will open the driver and allow the selection of what each of the two led's should do. The souce is included in the tar.gz for further review and exploration.

Personal tools