Led Howto

From OESF

Revision as of 14:33, 13 August 2007 by Qf0Z7v (Talk | contribs)
Jump to: navigation, search

affitto ufficio frosinone strawberry collegamento gratis internet new cars underdog project summer jam 2003 nvidia quadro fx 3000 de simone roberto williams cd www comunejesi tutte le malattie mentali your song monitor 3m microtouch m150 fpd 15 preventivi rca creative muvo v200 256 testo respect oroville playboy shirt pappa piccoli elettrodomestici skowronska mercedes e 300 td avantgarde frasi di buon compleanno mod editor mobbing lorenz desire spencer tv pci terrestre wireless lan pocket pc storie di sesso con cani videosdiarios com copenhagen milano bobulova barbara full duplex ricetrasmettitori passo doble carrello pieghevole microsoft outlook pevensey data traveler nike calcetto pace vapor maschio dotato www foxbox com progettazione del motore nikkor 10 5 sony sdm-hs95b hp-compaq-ipaq 6345 annuncio vendita scooter giochi scaricare cellulare volo aereo napoli-olbia cappe di aspirazione copertina hit mania 2001 italia sardegna mappe www nos divertimos com parabole decoder beta montecarlo elosli sat day by day trasporti nelle marche surveillance sette sataniche asta per lettino es mas com firma costituzione europea drin drin a rispondi canalis video backstage lissu valentina stilla orientale (uganda) zoom ottico 20x lettori dvd divx xvid dvd-ram 9 4 cisalpina it nokia penna digitale packard 6415 ati x800 pci-ex kelys lexus sc bepi koelliker zanotta film psp www monzanet it salani, adriano tipi di scale guadarrama, sierra de- fiat tipo 1 6 i e uno per tutti testo de il ballo di simone perizoma in vista poltrona massaggianti micronde sharp twingo ice 2000 esibizionist batteri logisty videosorveglianza allarmi compositor dale don nokia lancia lybra 1 9 jtd clavame tu amor de kinky porta trasportabile singola calcio tripod software destinator sex libero film copertura tetto gioco delle sfere colorate croazia camping montez de durango escuzione berg supporto pda da auto italianosingles linksys wrt54gx frese, jacob gweru estrazione lott dvd dvix lettore la vendetta di bruce lee yetisport 6 mappa stradale citta italia yakumo tft tecnologie educative tv color samsung lcd 20 euro alessandria varese epson photo perfection perde terreno il mercato giapponese fox, george surplus lombra can t stop red ho scuola primaria progetto la solidarieta dialisi mag 957 happy endig calle 8 capita tutto a me mensajes de texto movistar la tani solo nek jusis darla daphnia i ll be missing you yu gi oh game pc gypsy chat cyclette fassi la basura dediche di compleanno tailhade, laurent e natale ma io non ci sto dentro kid creole and the coconuts reggiseno molto imbottito il margine giochi olimpici innamorati noi v lento hp stampante a colori e fax i cinque samurai jamie walters songs nec e616v giochi lavoro grugliasco ghost recon jungle storm tonino midi camera diano marina wallisellen zar lucca compranet rex lavatrice aaa bavli, hillel interfaccia autoradio diviesto com otage turk porno gratis in italia hard core tv immagini paz vega nuda mju mini digital accessori f u r back diadora totti zuban de grenet topless batteria sony ericsson bst-37 x-sar cosmopolitan altoparlanti senza fili oberon (astronomia) kit fai da te i am see eih esort sigma 24 per minolta epson stylus photo 4000 maracaibo colombo magazzini messina capello lunghi kamasutra solo inverter r410a hotel grosseto impianti idrici kyocera yashica finecam s5r i maledetti figli dei fiori gamevn com villagi in croazia cucina mobile teri runnels nuda murata street sound numeri telefonici caltanissetta acciaio umano pump i up www samsung hi fi com 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