Revamped how volume changes are handled to also support remote volume control

This commit is contained in:
2022-06-28 22:13:54 +02:00
parent 36a27b81f3
commit f95bcb503a
6 changed files with 153 additions and 31 deletions

View File

@@ -2,5 +2,6 @@
namespace twai {
void init();
void change_volume(bool up);
}

View File

@@ -0,0 +1,12 @@
#pragma once
#include <cstdint>
#include <sys/lock.h>
namespace volume_controller {
void init();
void set_from_radio(int volume);
void set_from_remote(int volume);
uint8_t current();
}