1
0

commands.h 779 B

12345678910111213141516171819202122232425262728
  1. /***********************************************************************************
  2. Description:Define single-letter commands that will be sent by the PC over the
  3. serial link.
  4. Author: www.corvin.cn
  5. History: 20180209:init this file,add CODE_VERSION command;
  6. ************************************************************************************/
  7. #ifndef _COMMANDS_H_
  8. #define _COMMANDS_H_
  9. #define ANALOG_READ 'a'
  10. #define GET_BAUDRATE 'b'
  11. #define PIN_MODE 'c'
  12. #define DIGITAL_READ 'd'
  13. #define READ_ENCODERS 'e'
  14. #define MOTOR_SPEEDS 'm'
  15. #define RESET_ENCODERS 'r'
  16. #define UPDATE_PID 'u'
  17. #define DIGITAL_WRITE 'w'
  18. #define ANALOG_WRITE 'x'
  19. #define READ_PIDIN 'i'
  20. #define READ_PIDOUT 'o'
  21. #define SOUND_BEEP 'f'
  22. #define CODE_VERSION 'v'
  23. #endif