speeduino/comms.h

36 lines
718 B
C
Raw Normal View History

2015-02-14 05:11:43 -08:00
#ifndef COMMS_H
#define COMMS_H
#define veMapPage 1
#define veSetPage 2
#define ignMapPage 3
#define ignSetPage 4
#define afrMapPage 5
#define afrSetPage 6
#define iacPage 7
2015-09-24 13:24:40 -07:00
#define boostvvtPage 8
2015-10-10 05:43:45 -07:00
byte currentPage = 1;
boolean isMap = true;
const char pageTitles[] PROGMEM
{
"\nVolumetric Efficiancy Map\0"
"\nPage 1 Config\0"
"\nIgnition Map\0"
"\nPage 2 Config\0"
"\nAir/Fuel Ratio Map\0"
"\nPage 3 Config\0"
"\nPage 4 Config"
};
2013-07-08 17:43:41 -07:00
void command();
void sendValues();
void receiveValue(int offset, byte newValue);
2013-07-08 17:43:41 -07:00
void saveConfig();
2015-10-10 05:43:45 -07:00
void sendPage(bool useChar);
void receiveCalibration(byte tableID);
void sendToothLog(bool useChar);
2013-07-08 17:43:41 -07:00
void testComm();
2015-02-14 05:11:43 -08:00
#endif // COMMS_H