ソースを参照

change ADC_MULTIPLIER to better reflect battery voltage

Tomas P 9 ヶ月 前
コミット
c0a51aff66
1 ファイル変更2 行追加5 行削除
  1. 2 5
      variants/thinknode_m2/variant.h

+ 2 - 5
variants/thinknode_m2/variant.h

@@ -1,8 +1,8 @@
 #define I2C_SCL 15
 #define I2C_SDA 16
-#define  PIN_VBAT_READ    17
+#define PIN_VBAT_READ    17
 #define AREF_VOLTAGE            (3.0)
-#define ADC_MULTIPLIER (1.548F)
+#define ADC_MULTIPLIER (1.509F)
 #define PIN_BUZZER 5
 #define PIN_VEXT_EN_ACTIVE HIGH
 #define PIN_VEXT_EN 46
@@ -10,6 +10,3 @@
 #define PIN_LED 6
 #define PIN_STATUS_LED 6
 #define PIN_PWRBTN 4
-
-
-