📄 keyboard.h
字号:
#ifndef KEYBOARD_DRV_H
#define KEYBOARD_DRV_H#include "../libs/motolibs.h"/* Reads a value from keypad ports, inverts it, clears unused bits and sets bit 10 according to power key state (if PCAP is available) */
hword keyb_peek_direct(void);/* Reads the same as keyb_peek_direct() and debounces that value */hword keyb_peek(void);/* Checks if two keys specified by codes are pressed simultaeously */bool keyb_check_two_keys(byte key1, byte key2);/* Gets what key is pressed now (debounced). Returns key code (see inside) if exactly one key is pressed, 0xFF if no key is present, or 0xFE if more than one key is pressed */byte keyb_peek_key(void);/* Waits for no key to be pressed, then for exactly one key to be pressed, and return that key's code */byte keyb_get_key(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -