Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SRCS
"main.c"
"nvs_config.c"
"display.c"
"display_config.c"
"screen.c"
"input.c"
"system.c"
Expand Down
36 changes: 36 additions & 0 deletions main/default_screens.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#ifndef DEFAULT_SCREENS_H_
#define DEFAULT_SCREENS_H_

// Default screen configurations for OLED display
// Each screen is a string with \n separating lines
// Variables in curly braces {variable} are replaced at runtime

#define DEFAULT_SCREENS_COUNT 4

static const char *default_screens[] = {
// Screen 1: URLs (from SCR_URLS)
"Stratum Host:\n{pool_url}\nIP Address:\n{ip}",

// Screen 2: Stats (from SCR_STATS)
"Gh/s: {hashrate}\nJ/Th: {efficiency}\nBest: {session_diff}/{best_diff}\nTemp: {asic_temp}°C",

// Screen 3: Mining (from SCR_MINING)
"Block: {block_height}\nDifficulty: {network_diff}\nScriptsig:\n{scriptsig}",

// Screen 4: WiFi (from SCR_WIFI)
"Wi-Fi Signal\nRSSI: {rssi} dBm\nSignal: {signal}\nUptime: {uptime}",

// // Screen 5: Power Stats
// "Volts: {voltage} V\nAmps: {amps} A\nFan: {fan}%\nRPM: {fan_rpm}",

// // Screen 6: Mining Stats
// "Shares: {shares_a}/{shares_r}\nJobs Received: {work_received}\nTime: {response_time}ms",

// // Screen 7: System Info
// "Frequency: {frequency}MHz\nExpected: {expected_hashrate}Gh/s\nPower: {power} W\nCore: {core_voltage}nV",

// // Screen 8: Temperature Details
// "Chip Temp: {temp}°C\nVR Temp: {vr_temp}°C\nTarget: {temp_target}°C",
};

#endif // DEFAULT_SCREENS_H_
Loading
Loading