CommInterface, CommObd2Ble4, CommObd2Can
This commit is contained in:
@@ -1167,7 +1167,11 @@ void Board320_240::redrawScreen() {
|
|||||||
spr.fillCircle(310, 10, 3,
|
spr.fillCircle(310, 10, 3,
|
||||||
(liveData->params.sdcardInit == 1) ?
|
(liveData->params.sdcardInit == 1) ?
|
||||||
(liveData->params.sdcardRecording) ?
|
(liveData->params.sdcardRecording) ?
|
||||||
(strlen(liveData->params.sdcardFilename) != 0) TFT_RED: TFT_BLUE : TFT_GREEN : TFT_YELLOW
|
(strlen(liveData->params.sdcardFilename) != 0) ?
|
||||||
|
TFT_GREEN /* assigned filename (opsec from bms or gsm/gps timestamp */:
|
||||||
|
TFT_BLUE /* recording started but waiting for data */ :
|
||||||
|
TFT_ORANGE /* sdcard init ready but recording not started*/ :
|
||||||
|
TFT_YELLOW /* failed to initialize sdcard */
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
7
CommInterface.cpp
Normal file
7
CommInterface.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#ifndef COMMINTERFACE_CPP
|
||||||
|
#define COMMINTERFACE_CPP
|
||||||
|
|
||||||
|
#include "CommInterface.h"
|
||||||
|
#include "LiveData.h"
|
||||||
|
|
||||||
|
#endif // COMMINTERFACE_CPP
|
||||||
12
CommInterface.h
Normal file
12
CommInterface.h
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#ifndef COMMINTERFACE_H
|
||||||
|
#define COMMINTERFACE_H
|
||||||
|
|
||||||
|
#include "LiveData.h"
|
||||||
|
|
||||||
|
class CommInterface {
|
||||||
|
|
||||||
|
private:
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // COMMINTERFACE_H
|
||||||
7
CommObd2Ble4.cpp
Normal file
7
CommObd2Ble4.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#ifndef COMMOBD2BLE4_CPP
|
||||||
|
#define COMMOBD2BLE4_CPP
|
||||||
|
|
||||||
|
#include "CommInterface.h"
|
||||||
|
#include "LiveData.h"
|
||||||
|
|
||||||
|
#endif // COMMOBD2BLE4_CPP
|
||||||
12
CommObd2Ble4.h
Normal file
12
CommObd2Ble4.h
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#ifndef COMMOBD2BLE4_H
|
||||||
|
#define COMMOBD2BLE4_H
|
||||||
|
|
||||||
|
#include "LiveData.h"
|
||||||
|
|
||||||
|
class CommObd2Ble4 : public CommInterface {
|
||||||
|
|
||||||
|
private:
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // COMMOBD2BLE4_H
|
||||||
7
CommObd2Can.cpp
Normal file
7
CommObd2Can.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#ifndef COMMINTERFACE_CPP
|
||||||
|
#define COMMINTERFACE_CPP
|
||||||
|
|
||||||
|
#include "CommInterface.h"
|
||||||
|
#include "LiveData.h"
|
||||||
|
|
||||||
|
#endif // COMMINTERFACE_CPP
|
||||||
12
CommObd2Can.h
Normal file
12
CommObd2Can.h
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#ifndef COMMOBD2CAN_H
|
||||||
|
#define COMMOBD2CAN_H
|
||||||
|
|
||||||
|
#include "LiveData.h"
|
||||||
|
|
||||||
|
class CommObd2Can : public CommInterface {
|
||||||
|
|
||||||
|
private:
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // COMMOBD2CAN_H
|
||||||
Reference in New Issue
Block a user