?? readme.txt
字號:
This firmware implements an embedded gyro-mouse. The microcontroller outputs at 17-byte packet in UART to pin 1.0 in the following format:
BYTE 0: '$'
BYTE 1: 1 (firmwareMode is set to "embedded gyro-mouse")
BYTE 2: Temperature sensor, high byte
BYTE 3: Temperature sensor, low byte
BYTE 4: Y Gyroscope, high byte
BYTE 5: Y Gyroscope, low byte
BYTE 6: Z Gyroscope, high byte
BYTE 7: Z Gyroscope, low byte
BYTE 8: 0
BYTE 9: 0
BYTE 10: Horizontal pixel shift, high byte
BYTE 11: Horizontal pixel shift, low byte
BYTE 12: Vertical pixel shift, high byte
BYTE 13: Vertical pixel shift, low byte
Byte 14: Button (0x001100LR, L is left button, R is right button)
Byte 15: '\r'
Byte 16: '\n'
When used as a gyro-mouse, only bytes 10-13 need to be used. These bytes are the horizonal and vertical pixel shift amounts in signed two-byte integer format. This bytes are to be interpretted by an HID controller to be sent to a PC. For example, if bytes 10 and 11 are:
0x00 0x03
This means move the mouse cursor 3 pixels to the right.
Byte 14 corresponds to left and right mouse buttons, if they are to be passed through the PSoC. It is not necessary to use these bytes in the UART packet, but any mouse buttons should be routed to the PSoC pins P0.1 and P0.7. The mouse algorithm has a module for filtering out clicks in the motion data from the buttons.
This implementation uses a drift compensation library; however, for it to work correctly, this library must first be modified in a temperature compensation routine. The other bytes in the packet are used in the temperature compensation process.
The change from v1.1 includes support for a more robust drift compensator, and a bug fix regarding the mouse button controller.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -