Add option to rotate the display #27

Merged
awonak merged 4 commits from rotate-display into main 2025-08-10 02:48:00 +00:00
4 changed files with 80 additions and 60 deletions
Showing only changes of commit c3c0b39378 - Show all commits

View File

@ -86,6 +86,7 @@ class Channel {
void setClockMod(int index) {
base_clock_mod_index = constrain(index, 0, MOD_CHOICE_SIZE - 1);
_recalculatePulses();
}
void setProbability(int prob) {
@ -94,13 +95,16 @@ class Channel {
void setDutyCycle(int duty) {
base_duty_cycle = constrain(duty, 1, 99);
_recalculatePulses();
}
void setOffset(int off) {
base_offset = constrain(off, 0, 99);
_recalculatePulses();
}
void setSwing(int val) {
base_swing = constrain(val, 50, 95);
_recalculatePulses();
}
// Euclidean