Working ADC3 driver for 9XE additional analog inputs (driver source based on Michael Blandford's code)
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "../opentx.h"
|
||||
|
||||
volatile uint16_t Analog_values[NUMBER_ANALOG];
|
||||
uint16_t Analog_values[NUMBER_ANALOG];
|
||||
|
||||
#if defined(FRSKY_STICKS)
|
||||
const char ana_direction[NUMBER_ANALOG] = {1, 1, 0, 1 ,0 ,1 ,0, 0, 0};
|
||||
@@ -127,3 +127,8 @@ void adcRead()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
uint16_t getAnalogValue(uint32_t value)
|
||||
{
|
||||
return Analog_values[value];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user