File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -33,38 +33,14 @@ static uint32_t saadcGain = SAADC_CH_CONFIG_GAIN_Gain1_6;
33
33
34
34
static bool saadcBurst = SAADC_CH_CONFIG_BURST_Disabled ;
35
35
36
- #if 0 // Note: Adafruit use seperated HardwarePWM class
37
- #define PWM_COUNT 3
38
-
39
- static NRF_PWM_Type * pwms [PWM_COUNT ] = {
40
- NRF_PWM0 ,
41
- NRF_PWM1 ,
42
- NRF_PWM2
43
- };
44
-
45
- static uint32_t pwmChannelPins [PWM_COUNT ] = {
46
- 0xFFFFFFFF ,
47
- 0xFFFFFFFF ,
48
- 0xFFFFFFFF
49
- };
50
- static uint16_t pwmChannelSequence [PWM_COUNT ];
51
- #endif
36
+ // Note: Adafruit use seperated HardwarePWM class
52
37
53
38
static int readResolution = 10 ;
54
- //static int writeResolution = 8;
55
-
56
39
void analogReadResolution ( int res )
57
40
{
58
41
readResolution = res ;
59
42
}
60
43
61
- #if 0
62
- void analogWriteResolution ( int res )
63
- {
64
- writeResolution = res ;
65
- }
66
- #endif
67
-
68
44
static inline uint32_t mapResolution ( uint32_t value , uint32_t from , uint32_t to )
69
45
{
70
46
if ( from == to )
You can’t perform that action at this time.
0 commit comments