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:
parent
f8a987a592
commit
35653d25e3
@ -16,7 +16,7 @@
|
|||||||
// deadzone fudge factors for potentionmeter. test on actual badge
|
// deadzone fudge factors for potentionmeter. test on actual badge
|
||||||
// and see if necessary, or if pot hardware + adc periph is good enough
|
// and see if necessary, or if pot hardware + adc periph is good enough
|
||||||
#define POT_LO 40
|
#define POT_LO 40
|
||||||
#define POT_HI (1024-POT_LO)
|
#define POT_HI (4096-POT_LO)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user