Thread: Accessory port
View Single Post
Old 07-30-2012, 10:13 AM   #16
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by mmatej View Post
Thanks. Do yo know how to control LEDs using any similiar method?
There is an LED diagnostic in u-boot bist (using the serial port) that can flash out Morse code "okay" or "fail" on the LEDs. You could look in the u-boot source code for that.

Direct control of hardware needs to be in kernel mode, so would either need a custom loadable kernel module, or a custom kernel loaded with kexec (unless you can find an ioctl() call to do what you want).

I would like to output PWM sound on the LEDs (stereo using the yellow and green LEDs). You could recover the audio with color filters and a pair of photosensors feeding an audio amplifier (powered computer speakers?).

Of course, we can also use a USB OTG sound adapter, with appropriate hardware. I ordered some $1.35USD devices from an ebay store to use on a K4 (when I get some time). You can buy USB host mode cables for less thatn $1USD, or you can just cut a microUSB plug from a cord and solder it into the USB sound adapter.

Or you could use "WiFi Sound" (pipe raw sound to a host PC over WiFi).
geekmaster is offline   Reply With Quote