Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4e82f4d
Merged 4.26 support with X
bitbank2 Dec 9, 2025
bb82f26
disabled temperature profile logic for now
bitbank2 Dec 9, 2025
d4ca08a
fix api base uri back to default
ryanckulp Dec 10, 2025
ad11094
refactor FAKE_BATTERY_VOLTAGE to be determined from env versus config
ryanckulp Dec 10, 2025
e92d42f
Initial code to support multiple display/temperature profiles
bitbank2 Sep 16, 2025
21f80f3
drop unused logo.bmp
ryanckulp Dec 10, 2025
e2265f7
build and test fix
Fr3dr1ckson Dec 11, 2025
83db838
remove returning button state before reading
Fr3dr1ckson Dec 12, 2025
f752842
turning off trmnl x build check till merging trmnl x branch into main
Fr3dr1ckson Dec 12, 2025
fa86677
making function to turn off light sleep inside bbepaper, so qa wont b…
Fr3dr1ckson Dec 11, 2025
84fbc4b
Redoing button logic and making qa final screen react quicker to butt…
Fr3dr1ckson Dec 12, 2025
013f628
Temporary remove skip button
Fr3dr1ckson Dec 12, 2025
7e0a0b5
fixing all debug comments
Fr3dr1ckson Dec 12, 2025
1581b55
fixing bad merge button.cpp
Fr3dr1ckson Dec 12, 2025
6291f06
Switching to default api url
Fr3dr1ckson Dec 12, 2025
82fc619
v1.7.1
Fr3dr1ckson Dec 12, 2025
ff083b7
Returning medium hold
Fr3dr1ckson Dec 15, 2025
f0e3f32
Fixing qa skip, now can skip with double-click
Fr3dr1ckson Dec 17, 2025
5cd4815
Skip qa with single click
Fr3dr1ckson Dec 17, 2025
9dd15bb
removing debug flags from trmnl env
Fr3dr1ckson Dec 17, 2025
b68d7aa
changing qa test start strategy and smal fixes and memory optimisatio…
Fr3dr1ckson Dec 19, 2025
b1fb03b
v1.7.2
Fr3dr1ckson Dec 19, 2025
bcedfe9
Fix for serial logging merged with main
bitbank2 Dec 18, 2025
b5256b6
Fixed support for decoding all bit depths of PNG images up to 32bpp
bitbank2 Jan 8, 2026
98c0cb1
moved bb_epaper into a normal lib_dep
bitbank2 Jan 2, 2026
7efa3dd
Fixed 32-bit png decode problem - buffer overrun
bitbank2 Jan 10, 2026
dfc5d35
Fix HTTP client leaving open connections on server
oetiker Jan 12, 2026
3822137
Fix that typo which is bugging me for a while now
sd416 Jan 15, 2026
9a00975
Merged 4.26 support with X
bitbank2 Dec 9, 2025
83be2f4
refactor FAKE_BATTERY_VOLTAGE to be determined from env versus config
ryanckulp Dec 10, 2025
7b2529e
small fixes
Fr3dr1ckson Jan 16, 2026
563a44b
patched to update to the newest code
bitbank2 Mar 4, 2026
2f59794
Changed mini wake key to KEY1 and rotated 180 degrees
bitbank2 Mar 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

runs-on: ${{ matrix.os }}

timeout-minutes: 15
timeout-minutes: 30

steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -67,10 +67,10 @@ jobs:
gcc --version

- name: build (trmnl)
run: pio run -j 4
run: pio run -j ${{ runner.os == 'Windows' && '1' || '4' }} -v

- name: build (TRMNL_X)
run: pio run -e TRMNL_X -j 4
#- name: build (TRMNL_X)
# run: pio run -e TRMNL_X -j ${{ runner.os == 'Windows' && '1' || '4' }} -v

- name: test
if: matrix.os != 'windows-latest'
Expand Down
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"pioarduino.pioarduino-ide",
"platformio.platformio-ide"
],
"unwantedRecommendations": [
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions include/button.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ enum ButtonPressResult
{
LongPress,
DoubleClick,
NoAction,
SoftReset
ShortPress,
SoftReset,
NoAction
};
extern const char *ButtonPressResultNames[4];

Expand Down
24 changes: 17 additions & 7 deletions include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define FW_MAJOR_VERSION 1
#define FW_MINOR_VERSION 7
#define FW_PATCH_VERSION 0
#define FW_PATCH_VERSION 2

// Helper macros for stringification
#define STRINGIFY(x) #x
Expand All @@ -24,6 +24,7 @@
#define PREFERENCES_FRIENDLY_ID "friendly_id"
#define PREFERENCES_FRIENDLY_ID_DEFAULT ""
#define PREFERENCES_SLEEP_TIME_KEY "refresh_rate"
#define PREFERENCES_TEMP_PROFILE "temp_profile"
#define PREFERENCES_LOG_KEY "log_"
#define PREFERENCES_LOG_BUFFER_HEAD_KEY "log_head"
#define PREFERENCES_LOG_ID_KEY "log_id"
Expand All @@ -48,6 +49,12 @@
#define SLEEP_TIME_WHILE_NOT_CONNECTED 5 /* Time ESP32 will go to sleep (in seconds) */
#define SLEEP_TIME_WHILE_PLUGIN_NOT_ATTACHED 5 /* Time ESP32 will go to sleep (in seconds) */

// Different display profiles
#define TEMP_PROFILE_DEFAULT 0
#define TEMP_PROFILE_A 1
#define TEMP_PROFILE_B 2
#define TEMP_PROFILE_C 3

#define MS_TO_S_FACTOR 1000 /* Conversion factor for milliseconds to seconds */

enum API_CONNECT_RETRY_TIME // Time to sleep before trying to connect to the API (in seconds)
Expand All @@ -73,21 +80,22 @@ enum WIFI_CONNECT_RETRY_TIME // Time to sleep before trying to connect to the Wi
#elif defined(BOARD_WAVESHARE_ESP32_DRIVER)
#define PIN_INTERRUPT 33
#define DEVICE_MODEL "waveshare"
#define FAKE_BATTERY_VOLTAGE
#elif defined(BOARD_SEEED_XIAO_ESP32C3)
#define DEVICE_MODEL "seeed_esp32c3"
#define PIN_INTERRUPT 9 //the boot button on the XIAO ESP32-C3, this button can't be used as wakeup source though
#define PIN_INTERRUPT 9 //the boot button on the XIAO ESP32-C3, this button can't be used as wakeup source though
//because it's not in the RTC GPIO group. Instead, you can always use the reset button to
//wake up the device. Resetting WiFi configuration needs special routine - press reset button
//then press the boot button in less than 2 seconds, and hold it for 5 seconds.
#define FAKE_BATTERY_VOLTAGE
#elif defined(BOARD_SEEED_XIAO_ESP32S3)
#define DEVICE_MODEL "seeed_esp32s3"
#define PIN_INTERRUPT 0 //the boot button on the XIAO ESP32-S3, this button works as regular wakeup button
#define FAKE_BATTERY_VOLTAGE
#elif defined(BOARD_XIAO_EPAPER_DISPLAY)
#define DEVICE_MODEL "xiao_epaper_display"
#ifdef MINI_EPD
#define PIN_INTERRUPT 2 //with silkscreen "KEY1"
#else
#define PIN_INTERRUPT 5 //with silkscreen "KEY3"
#endif
#define PIN_VBAT_SWITCH 6 //load switch enable pin for battery voltage measurement
#define VBAT_SWITCH_LEVEL HIGH //load switch enable pin active level
#elif defined(BOARD_SEEED_RETERMINAL_E1001)
Expand All @@ -103,14 +111,16 @@ enum WIFI_CONNECT_RETRY_TIME // Time to sleep before trying to connect to the Wi
#define PIN_BATTERY 3
#endif

// #define FAKE_BATTERY_VOLTAGE // Uncomment to report 4.2V instead of reading ADC
#if defined(USE_FAKE_BATTERY_VOLTAGE)
#define FAKE_BATTERY_VOLTAGE // reports 4.2V instead of reading ADC
#endif

#define BUTTON_HOLD_TIME 5000
#define BUTTON_MEDIUM_HOLD_TIME 1000
#define BUTTON_SOFT_RESET_TIME 15000
#define BUTTON_DOUBLE_CLICK_WINDOW 800

#define SERVER_MAX_RETRIES 3

#define API_BASE_URL "https://trmnl.app"

#endif
12 changes: 12 additions & 0 deletions include/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ enum MSG
FILL_WHITE,
};

typedef struct dp_tag
{
uint32_t OneBit, TwoBit; // profiles for 1 and 2-bit modes
} DISPLAY_PROFILE;

/**
* @brief Function to init the display
* @param none
Expand Down Expand Up @@ -128,6 +133,13 @@ void display_show_msg_api(uint8_t *image_buffer, String message);

void display_show_msg_qa(uint8_t *image_buffer, const float *voltage, const float *temperature, bool qa_result);

/**
* @brief Enable or disable light sleep at runtime
* @param enabled true to enable light sleep, false to disable
* @return none
*/
void display_set_light_sleep(uint8_t enabled);

/**
* @brief Function to got the display to the sleep
* @param none
Expand Down
File renamed without changes.
Binary file removed lib/bb_epaper/.DS_Store
Binary file not shown.
202 changes: 0 additions & 202 deletions lib/bb_epaper/APL.txt

This file was deleted.

9 changes: 0 additions & 9 deletions lib/bb_epaper/CMakeLists.txt

This file was deleted.

Loading
Loading