Update examples & upload firmware
This commit is contained in:
parent
3a360eb884
commit
334161d713
10 changed files with 28 additions and 14 deletions
|
|
@ -12,18 +12,6 @@
|
|||
#include "boards.h"
|
||||
|
||||
using namespace ace_button;
|
||||
/*
|
||||
Replace the model according to the actual situation
|
||||
|
||||
RADIO_TYPE option:
|
||||
- SX1278
|
||||
- SX1276
|
||||
- SX1262
|
||||
*/
|
||||
#define RADIO_TYPE SX1276
|
||||
|
||||
//If you want to use SX1262, cancel this comment
|
||||
// #define RADIO_USING_SX1262
|
||||
|
||||
|
||||
SSD1306 *oled = nullptr;
|
||||
|
|
@ -54,14 +42,20 @@ void MsOverlay(OLEDDisplay *display, OLEDDisplayUiState *state);
|
|||
void DrawFrame1(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y);
|
||||
void DrawFrame2(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y);
|
||||
void DrawFrame3(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y);
|
||||
#ifndef LILYGO_TBeam_V0_7
|
||||
void DrawFrame4(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y);
|
||||
#endif
|
||||
void SenderLoop(void);
|
||||
void GpsLoop(void);
|
||||
void ReceiveLoop(void);
|
||||
|
||||
typedef void (*funcCallBackTypedef)(void);
|
||||
funcCallBackTypedef LilyGoCallBack[] = {GpsLoop, SenderLoop, ReceiveLoop, NULL};
|
||||
FrameCallback frames[] = {DrawFrame1, DrawFrame2, DrawFrame3, DrawFrame4};
|
||||
FrameCallback frames[] = {DrawFrame1, DrawFrame2, DrawFrame3,
|
||||
#ifndef LILYGO_TBeam_V0_7
|
||||
DrawFrame4
|
||||
#endif
|
||||
};
|
||||
OverlayCallback overlays[] = { MsOverlay };
|
||||
|
||||
// this function is called when a complete packet
|
||||
|
|
@ -384,6 +378,7 @@ void DrawFrame3(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int1
|
|||
display->drawString(64 + x, 35 + y, buff[1]);
|
||||
}
|
||||
|
||||
#ifndef LILYGO_TBeam_V0_7
|
||||
void DrawFrame4(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y)
|
||||
{
|
||||
bool batteryConnect = PMU.isBatteryConnect();
|
||||
|
|
@ -401,4 +396,4 @@ void DrawFrame4(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int1
|
|||
display->drawString(64 + x, 24 + y, buff[1]);
|
||||
display->drawString(64 + x, 37 + y, buff[2]);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -17,6 +17,25 @@
|
|||
|
||||
// #define LoRa_frequency 433.0
|
||||
|
||||
/*
|
||||
Replace the model according to the actual situation
|
||||
|
||||
RADIO_TYPE option:
|
||||
- SX1278
|
||||
- SX1276
|
||||
- SX1262
|
||||
*/
|
||||
#define RADIO_TYPE SX1276
|
||||
|
||||
//If you want to use SX1262, cancel this comment
|
||||
// #define RADIO_USING_SX1262
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define UNUSE_PIN (0)
|
||||
|
||||
|
|
|
|||
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1262_868.bin
Normal file
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1262_868.bin
Normal file
Binary file not shown.
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1262_915.bin
Normal file
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1262_915.bin
Normal file
Binary file not shown.
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1276_868.bin
Normal file
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1276_868.bin
Normal file
Binary file not shown.
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1276_915.bin
Normal file
BIN
firmware/TBEAM_V07_ALLFUNCTION_SX1276_915.bin
Normal file
Binary file not shown.
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1262_868.bin
Normal file
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1262_868.bin
Normal file
Binary file not shown.
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1262_915.bin
Normal file
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1262_915.bin
Normal file
Binary file not shown.
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1276_868.bin
Normal file
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1276_868.bin
Normal file
Binary file not shown.
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1276_915.bin
Normal file
BIN
firmware/TBEAM_V10_V11_ALLFUNCTION_SX1276_915.bin
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue