Skip to content

Commit

Permalink
Comment out battery until fixed, add likely SOC
Browse files Browse the repository at this point in the history
Asked r/esp32 on reddit about which esp32 model was used, as the metal shield that normally has the model printed on it was removed.
  • Loading branch information
Cralex committed Nov 14, 2022
1 parent 678bd0e commit 490acab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/retro-go/targets/mrgc-gbm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


// Parts:
// Unknown ESP-32 (Metal shield removed from module) (SOC)
// Unknown ESP-32 (Most likely ESP32-WROVER-B) (SOC)


// Target definition
Expand Down Expand Up @@ -66,7 +66,7 @@
#define RG_GAMEPAD_MAP_Y (0)

// Battery
#define RG_BATTERY_ADC_CHANNEL ADC1_CHANNEL_0 // Default 0, commented out.
// #define RG_BATTERY_ADC_CHANNEL ADC1_CHANNEL_0 // Default 0, commented out.
#define RG_BATTERY_CALC_PERCENT(raw) (((raw) - 170) / 30.f * 100.f)
#define RG_BATTERY_CALC_VOLTAGE(raw) (0)

Expand Down

0 comments on commit 490acab

Please sign in to comment.