From 7de122f829dd7f8e020f4bb5930c078ff3dec61b Mon Sep 17 00:00:00 2001 From: vicentebearth Date: Thu, 23 Jul 2026 14:17:04 +0200 Subject: [PATCH] Added Variable for default 7segg-chan character --- setup.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup.h b/setup.h index 09b1896..ce968b0 100644 --- a/setup.h +++ b/setup.h @@ -1,11 +1,12 @@ //Setup file for main sketch -const float shunt_resistance = -1; //resistance of current shunt -const float voltage_divider = -1; //voltage division +const float shunt_resistance = -1; //resistance of current shunt in milliohms +const float voltage_divider = 2; const char mcu_model[] ={"RP2040-Zero"};//currently unused, might be useful later +const int default_usbscore = -1; -#define VOLTAGE_PIN -1 //adc pin for voltage -#define CURRENT_PIN -1 //adc pin for current shunt +#define VOLTAGE_PIN A0 //adc pin for voltage +#define CURRENT_PIN A1 //adc pin for current shunt //i2c pins #define I2C_SDA 28 @@ -13,4 +14,5 @@ const char mcu_model[] ={"RP2040-Zero"};//currently unused, might be useful late const bool use_7seggchan = true ; //pls use him he did nothing wrong [pleading face] const bool use_default_fonts = false ; //use custom fonts or default fonts (custom fonts reccomended, set to true and dont include fonts if memory usage is too high) -const bool use_bitmaps = true;//use bitmaps (reccomended, set to false and dont include images.h if memory usage is too high) \ No newline at end of file +const bool use_bitmaps = true;//use bitmaps (reccomended, set to false and dont include images.h if memory usage is too high) +const bool use_usbscore = false; //(doesnt work if 7segg-chan is set to false)calculates usb score (value from 0-9) and prints it in 7segg-chan font to determine quality (reccomended) \ No newline at end of file