test
Diff: RN42.h
- Revision:
- 0:30f62fde3cf4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RN42.h Mon Dec 16 10:26:09 2013 +0000 @@ -0,0 +1,53 @@ +#include "mbed.h" + +short RN42_init(void); +short RN42_reset(void); +short RN42_SPP(void); +short RN42_HID(void); +short RN42_key(char key); +short RN42_mouse(signed char x,signed char y); +short RN42_click(char l,char r,char m); +short RN42_specaial_key(char key); +void RN42_connect(void); + +#define INSERT_KEY 0x49 +#define HOME_KEY 0x4A +#define PAGE_UP_KEY 0x4B +#define DELETE_KEY 0x4C +#define END_KEY 0x4D +#define PAGE_DOWN_KEY 0x4E +#define RIGHT_ARROW_KEY 0x07 +#define BACKSPACE_KEY 0x2A +#define TAB_KEY 0x2B +#define ENTER_KEY 0x28 +#define LEFT_ARROW_KEY 0x0B +#define DOWN_ARROW_KEY 0x0C +#define UP_ARROW_KEY 0x0E +#define F1_KEY 0x3A +#define F2_KEY 0x3B +#define F3_KEY 0x3C +#define F4_KEY 0x3D +#define F5_KEY 0x3E +#define F6_KEY 0x3F +#define F7_KEY 0x40 +#define F8_KEY 0x41 +#define F9_KEY 0x42 +#define F10_KEY 0x43 +#define F11_KEY 0x44 +#define F12_KEY 0x45 +#define ESCAPE_KEY 0x29 +#define CAPS_LOCK_KEY 0x39 +#define SCROLL_LOCK_KEY 0x47 +#define BREAK_PAUSE_KEY 0x48 +#define NUM_LOCK_KEY 0x53 +#define LEFT_CTRL_KEY 0xE0 +#define LEFT_SHIFT_KEY 0xE1 +#define LEFT_ALT_KEY 0xE2 +#define RIGHT_CTRL_KEY 0xE4 +#define RIGHT_SHIFT_KEY 0xE5 +#define RIGHT_ALT_KEY 0xE6 + + + + +