auto EPD-lut type detection on 1.54", new binaries

This commit is contained in:
Jelmer
2023-02-09 21:57:05 +01:00
parent 372b1071d4
commit 7bcc326ff5
9 changed files with 7 additions and 15 deletions

View File

@@ -21,7 +21,5 @@
#define SCREEN_DATA_PASSES 2
#define SCREEN_LUT_LENGTH 10
#endif

View File

@@ -21,7 +21,4 @@
#define SCREEN_DATA_PASSES 2
#define SCREEN_LUT_LENGTH 7
#endif

View File

@@ -21,7 +21,5 @@
#define SCREEN_DATA_PASSES 2
#define SCREEN_LUT_LENGTH 7
#endif

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -10,11 +10,10 @@
#define LUTGROUP_IMPROVE_REDS 5
#define LUTGROUP_UNUSED 6
#if (SCREEN_LUT_LENGTH == 10)
#define LUTGROUP_UNKNOWN 7
#define LUTGROUP_UNUSED3 8
#define LUTGROUP_UNUSED4 9
#endif
struct vgroup {
uint8_t A : 2;

View File

@@ -3,9 +3,9 @@
#include <stdint.h>
#define FW_VERSION 013 // version number (max 2.5.5 :) )
#define FW_VERSION_SUFFIX "-rf99" // suffix, like -RC1 or whatever.
#define HAS_BUTTON // uncomment to enable reading a push button (connect between 'TEST' en 'GND' on the tag, along with a 100nF capacitor in parallel).
#define DEBUGBLOCKS // uncomment to enable extra debug information on the block transfers
#define FW_VERSION 014 // version number (max 2.5.5 :) )
#define FW_VERSION_SUFFIX "-lutje" // suffix, like -RC1 or whatever.
#define HAS_BUTTON // uncomment to enable reading a push button (connect between 'TEST' en 'GND' on the tag, along with a 100nF capacitor in parallel).
#define DEBUGBLOCKS // uncomment to enable extra debug information on the block transfers
//#define PRINT_LUT // uncomment if you want the tag to print the LUT for the current temperature bracket
#endif

View File

@@ -180,7 +180,7 @@ void addScanResult(uint8_t channel, uint8_t lqi) {
#if (SCREEN_WIDTH == 128) // 2.9"
epdPrintBegin(56 + ((resultcounter % 4) * 16), 282 - (47 * (resultcounter / 4)), EPD_DIRECTION_Y, EPD_SIZE_SINGLE, EPD_COLOR_BLACK);
#endif
#if (SCREEN_WIDTH ==150) // 1.54"
#if (SCREEN_WIDTH ==152) // 1.54"
epdPrintBegin(4 + (47 * (resultcounter / 8)), 31 + (15 * (resultcounter % 8)), EPD_DIRECTION_X, EPD_SIZE_SINGLE, EPD_COLOR_BLACK);
#endif
#if (SCREEN_WIDTH == 400) // 4.2"