mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
first working version
This commit is contained in:
parent
dc32489f4e
commit
cd15c356ac
3
TODO.txt
3
TODO.txt
@ -3,8 +3,9 @@
|
||||
UNTIL 13. August 2009 : Google Open Source Jam
|
||||
- DEMOS:
|
||||
- OpenGL-ES-WiiMote
|
||||
- show staus label
|
||||
-
|
||||
- WiiMote - http://wiibrew.org/wiki/Wiimote#Bluetooth_Communication
|
||||
- turn on accellerometer by sending packet 52 12 00 33 over PSM 0x13 OR 0x11 - 0x13 did not work -> send to 0x11
|
||||
- quick hack: run BTstack run loop in separate thread and use performOnMainThread to deliver data
|
||||
- better: move run_loop.c to run_loop_posix.c and create run_loop_darwin.c
|
||||
- BTstack-cmd - running on laptop and iPhone?
|
||||
|
@ -60,8 +60,8 @@ void event_handler(uint8_t *packet, uint16_t size){
|
||||
bt_send_cmd(&l2cap_create_channel, addr, 0x11);
|
||||
} else {
|
||||
// request acceleration data.. probably has to be sent to control channel 0x11 instead of 0x13
|
||||
uint8_t setMode33[] = { 0x52, 0x12, 0x00, 0x33 };
|
||||
l2cap_send( source_cid, setMode33, sizeof(setMode33));
|
||||
uint8_t setMode31[] = { 0x52, 0x12, 0x00, 0x31 };
|
||||
l2cap_send( source_cid, setMode31, sizeof(setMode31));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user