![]() |
2007-08-23
, 10:28
|
Posts: 61 |
Thanked: 1 time |
Joined on Jul 2007
|
#11
|
![]() |
2007-08-23
, 11:41
|
Posts: 393 |
Thanked: 112 times |
Joined on Jul 2007
|
#12
|
![]() |
2007-08-23
, 11:50
|
Posts: 393 |
Thanked: 112 times |
Joined on Jul 2007
|
#13
|
![]() |
2007-08-23
, 12:34
|
Posts: 61 |
Thanked: 1 time |
Joined on Jul 2007
|
#14
|
There are bluetooth keyboards/controllers available out there! Take for instance - the Wiimote which can be connected and queried by the N800 very easily! It's also available for a pretty cheap price if you know where to look and has a standard NES layout.
See: http://www.wiili.org/index.php/Wiimote_driver
To see something working on the N800:
1. Download bluez-hcidump (enable red-pill mode.)
2. Put the Wiimote in discovery mode by pressing 1 & 2 (or the scan button on the back.)
In xterm: hidd --search to connect to the Wiimote.
Then: hcidump -X to dump the results from the Wiimote (or hcidump -R for the raw deal.)
It's just a case of using the Filter API to parsing the data values returned; or just parse values from HCIdump through a pipe.
Even without anything configured, I've found that pressing buttons on the Wiimote will take the N800 out of screen dimming mode. Only issue is that because it's a HCI device it seems the N800 stops its own internal software keyboard from coming up if you need it. Is there a setting out there to make both work at the same time?
With some more work you may be able to read the accelerometer values, play sound through the speaker, blink the LEDs, and store information on the internal Wiimote flash memory.
Silly me, there's already a lib available: http://libwiimote.sourceforge.net/
Could use udev to provide a persistant naming scheme for multiple devices:
udevinfo -a -p `udevinfo -q path -n /dev/input/event4`
more /proc/bus/input/devices
![]() |
2007-08-26
, 04:13
|
Posts: 58 |
Thanked: 9 times |
Joined on Jul 2007
|
#15
|