[+] Run lights

This commit is contained in:
Hykilpikonna
2023-04-28 17:53:34 -04:00
parent 1823b0f5d2
commit 2258b7db6e
3 changed files with 11 additions and 13 deletions
+1 -8
View File
@@ -62,13 +62,6 @@ public:
}
private:
/**
* Initialize panel pins, encoders, and start the panel thread
*/
void setupPanel()
{
}
void readPanel()
{
const auto hue_interval = 512;
@@ -120,7 +113,7 @@ private:
onPotRead(i, pot);
// If the state is changed, call potentiometer callback
if (abs(pot_states[i] - pot) > 4)
if (ABS(pot_states[i] - pot) > 4)
{
pot_states[i] = pot;
onPotChange(i, pot);