Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
StarNiell authored Feb 26, 2024
1 parent 69e1177 commit 88d3f63
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ int a1 = 315;

// imposta i pixel di spostamento dell'ago per i passi larghi
int iNeedlePixelLargeMove = 3;
// il valore minimo di lettura che equivale a 0
int minAnalogValue = 680;
// il valore minimo di lettura che equivale a 9+60
int maxAnalogValue = 4095;

// Set the your own values (linear interpolation) between the analog data and the SMeter signal
float ranlg[10] = {27.0, 215.0, 640.0, 1350.0, 2130.0, 2705.0, 3125.0, 3460.0, 3760.0, 4000.0};
float rsign[10] = {0.0, 1.0, 2.0, 3.0, 5.0, 7.0, 9.0, 10.0, 12.0, 15.0};
float alpha[10];
Expand Down Expand Up @@ -303,4 +300,4 @@ void loop() {



}
}

0 comments on commit 88d3f63

Please sign in to comment.