Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello, I am using BlueUSBHosthttp://mbed.org/users/peterbarrett1967/programs/BlueUSB/5yn1q program to talk mbed with my mouse. After connecting mouse it starts writing AUTO_MOUSE in terminal window. Please can anybody help me with code to get access to x,y, wheel and button data instead of AUTO_MOUSE report on terminal. I would like to use these data to do some actions (example - pressing left button will light up LED 1 on mbed).
After using google I understand I have to read interupt endpoint 81. My idea is to read this endpoint "on the fly" so as 4byte data arrives from mouse to mbed >read them > (store them to buffer?) > and process some functions based on values arrived in endpoint.
Can You please help me with code to have access to 4bytes from interupt endpoint of mouse? Or how to get printed by terminal values of andpoint that mouse sends instead of AUTO_MOUSE message?