joystick.h
来自「实现液晶多层菜单的程序」· C头文件 代码 · 共 29 行
H
29 行
#ifndef __JOYSTICK_H__
#define __JOYSTICK_H__
#include <inttypes.h>
#include "joystick_hw.h"
/* joystick_init: initialize ports for reading joystick
*/
void joystick_init(void);
/* joystick_read: returns OR'd values of any of the
* following which are closed:
*
* JOYSTICK_UP
* JOYSTICK_DOWN
* JOYSTICK_LEFT
* JOYSTICK_RIGHT
* JOYSTICK_BUTTON
*
* -- definitions in joystick_hw.h
*/
uint8_t joystick_read(void);
#endif // #ifndef __JOYSTICK_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?