Add support for current/voltage measurement on Ghoul. (#19630)

This commit is contained in:
Nick Brassel
2023-01-19 11:13:39 +11:00
committed by GitHub
parent 4723f308ad
commit baecc69da5
5 changed files with 7 additions and 6 deletions

View File

@@ -28,8 +28,8 @@
#define RGB_ENABLE_PIN GP6
// ADC Configuration
#define ADC_RESOLUTION ? ? ? // ADC_CFGR1_RES_12BIT // TBD when RP2040 has analog support
#define ADC_SATURATION ? ? ? // ((1 << 12) - 1) // TBD when RP2040 has analog support
#define ADC_RESOLUTION 12
#define ADC_SATURATION ((1 << 12) - 1)
#define ADC_CURRENT_PIN GP26
#define ADC_VOLTAGE_PIN GP27