?? gpio.h
字號:
#ifndef GPIO_DRV_H
#define GPIO_DRV_H
#include "../libs/motolibs.h"
#define GPIO_DIR_IN 0
#define GPIO_DIR_OUT 1
/* Configure a GPIO pin as input or output and to use the specified
* alternative input/output channel */
void gpio_config(byte port, byte pin, byte dir, byte chan);
/* Set a value on an out GPIO pin */
void gpio_write(byte port, byte pin, byte val);
/* Get a value from an in GPIO pin */
byte gpio_read(byte port, byte pin);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -