changed ADC range for pot; ADC seems to work fine now

this chip uses 12-bit ADC, vs 10-bit on old chip. I tried to limit the pot within
a small range, but it still wasn't working as expected until I did this.

have no idea. don't code without sleep.
This commit is contained in:
true 2025-07-24 06:23:14 -07:00
parent f8a987a592
commit 35653d25e3

View File

@ -16,7 +16,7 @@
// deadzone fudge factors for potentionmeter. test on actual badge
// and see if necessary, or if pot hardware + adc periph is good enough
#define POT_LO 40
#define POT_HI (1024-POT_LO)
#define POT_HI (4096-POT_LO)