direction commands updated to Up down RPM value
Dependencies: MAX7219pot MCP23S17 mbed
Fork of POT_V_1_0 by
Diff: pot.h
- Revision:
- 3:ae45e29f5d4f
- Parent:
- 1:e116808d8b00
- Child:
- 4:710464cb44fc
--- a/pot.h Fri Jan 05 04:37:54 2018 +0000 +++ b/pot.h Sat Jan 13 11:49:18 2018 +0000 @@ -17,7 +17,6 @@ /*Pin defination for PWM based brightness control */ #define _PWM PB_7 - /*Pin defination for alarm drivers */ #define BUZ PC_6 #define HTR PC_8 @@ -49,21 +48,8 @@ /*UART buffer settings */ #define RX_BUFFER_SIZE 0x19 //25 bytes or char to be stored +#define TX_BUFFER_SIZE 0x19 + #define NO_MAX_POT 0x08 //maximum no. of of eot devices to be connected #define NMEA_END_CHAR_1 '\n' #define NMEA_MAX_LENGTH 30 - - //digit0, 1, 2, 3 -char print_FH[5] = {0x40,0x00,0x37,0x47}; -char print_HH[5] = {0x40,0x00,0x37,0x37}; -char print_SH[5] = {0x40,0x00,0x37,0x5b}; -char print_DSH[5] = {0x40,0x37,0x5b,0x3d}; -char print_FS[5] = {0x08,0x00,0x5b,0x47}; -char print_HS[5] = {0x08,0x00,0x5b,0x37}; -char print_SS[5] = {0x08,0x00,0x5b,0x5b}; -char print_DSS[5] = {0x08,0x5b,0x5b,0x3d}; -char print_FWE[5] = {0x00,0x4f,0x5d,0x47}; -char print_STOP[5] = {0x67,0x1d,0x0f,0x5b}; -char print_STBY[5] = {0x33,0x1f,0x0f,0x5b}; - -char *commands[11] = {print_FH,print_HH,print_SH,print_DSH,print_FS,print_HS,print_SS,print_DSS,print_FWE,print_STOP,print_STBY};