12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef __SCREEN_H
- #define __SCREEN_H
- #include "stdint.h"
- #define Icon_Stop 0x02
- #define Icon_Run 0x01
- #define Icon_Warn 0x14
- #define Icon_Clear 0x00
- #define Icon_Up 0x0F
- #define Icon_Down 0x10
- #define Icon_Hign_Speed 0x03
- #define Icon_Mid_Speed 0x04
- #define Icon_Low_Speed 0x05
- #define Icon_Battery_00 0x00
- #define Icon_Battery_20 0x0C
- #define Icon_Battery_40 0x0B
- #define Icon_Battery_60 0x0A
- #define Icon_Battery_80 0x09
- #define Icon_Battery_100 0x08
- #define SPEED_OFF 0x00
- #define HIGH_SPEED 0x03
- #define MID_SPEED 0x04
- #define LOW_SPEED 0x05
- #define LIFT_ICON 0x0
- #define UP_ICON 0x0F
- #define DOWN_ICON 0x10
- #define SCREEN_RECV_DATA_LEN 7
- #define SCREEN_STATUS_INIT 0
- #define SCREEN_BTN_IDX_TYPE 4
- #define SCREEN_BTN_TYPE_ST 0
- #define SCREEN_BTN_TYPE_STATUS 1
- #define SCREEN_BTN_TYPE_SPEED 2
- #define SCREEN_BTN_ID_STOP 1
- #define SCREEN_BTN_ID_START 2
- #define SCREEN_STATUS_SECOND 1
- #define SCREEN_STATUS_DATA 2
- #define SCREEN_BTN_IDX_ID 6
- #define SCREEN_BTN_ID_KEY_VALUE 0
- #define SCREEN_BTN_ID_STATUS_START 1
- #define SCREEN_BTN_ID_STATUS_STOP 2
- #define SCREEN_BTN_ID_SPEED_HIGH 3
- #define SCREEN_BTN_ID_SPEED_MID 4
- #define SCREEN_BTN_ID_SPEED_LOW 5
- #define SCREEN_BTN_ID_LIFT_UP 6
- #define SCREEN_BTN_ID_LIFT_DOWN 7
- void Screen_SetBatteryStatus(uint8_t batteryLevel);
- void Screen_SetCode(uint8_t Error_Status);
- void Screen_SetTarget(uint16_t Target_Site);
- void Screen_Icon_Speed(uint8_t Speed_Status);
- void Screen_Icon_Run(uint8_t Icon_Status);
- void Screen_Icon_Lift(uint8_t Icon_Status);
- void Screen_Icon_Warn(uint8_t Icon_Status);
- void Screen_Icon_Battery(uint8_t Icon_Status);
- #endif
|