⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 joystick.h

📁 实现液晶多层菜单的程序
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -