M12-04P/hwCtrl.h

19 lines
274 B
C
Raw Normal View History

2023-03-07 15:12:00 +08:00
#ifndef __HWCTRL_H__
#define __HWCTRL_H__
#include "r_cg_macrodriver.h"
#define LED_ON 0
#define LED_OFF 1
2023-03-08 17:09:22 +08:00
#define MOTOR_NOACT 0
#define MOTOR_ZZ 1
#define MOTOR_FZ 2
#define MOTOR_BREAK 3
2023-03-07 15:12:00 +08:00
2023-03-08 17:09:22 +08:00
uint8_t GetKeyState(uint8_t keyno);
void MotorCtrl(uint8_t act);
2023-03-07 15:12:00 +08:00
#endif