Skip to content

Commit 6159ad2

Browse files
committed
Sort of "fix" to take into account the fix in the core for ADC returning odd values
1 parent 6d2c049 commit 6159ad2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extras/functions_generator_firmware/SKr3_waves/SKr3_waves.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include "led_range.h"
2424
#include "analogWave.h"
2525

26+
#define ANRES 9
27+
2628
#define RES 100
2729

2830
// Firmware version
@@ -122,6 +124,10 @@ void setup() {
122124
wave1.sync(wave2);
123125
rephase=0;
124126
time_rephase=millis();
127+
128+
/* 20230707 keep resolution to 0-511 also if core now is correct
129+
and goes from 1-1023 */
130+
analogReadResolution(ANRES);
125131
}
126132

127133

0 commit comments

Comments
 (0)