Convert Encoder callbacks to be boolean functions (#12805)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
This commit is contained in:
parent
76c23b15ab
commit
a0fed0ea17
437 changed files with 2542 additions and 2135 deletions
|
@ -308,7 +308,7 @@ uint16_t dac_value_generate(void) {
|
|||
return value;
|
||||
}
|
||||
|
||||
void encoder_update(bool clockwise) {
|
||||
bool encoder_update(bool clockwise) {
|
||||
if (clockwise) {
|
||||
dac_morph = (dac_morph + 1) % AUDIO_DAC_WAVETABLE_CUSTOM_LENGTH;
|
||||
} else {
|
||||
|
@ -317,4 +317,5 @@ void encoder_update(bool clockwise) {
|
|||
else
|
||||
dac_morph--;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue