arduino code for the gauge:
void setup(){
Serial2.begin(115200);
}
void loop()
{
unsigned int new_turbo = analogRead(3);
unsigned int ancien_turbo=3;
int pression;
pression=map(new_turbo,0,1024,0,30);
if(new_turbo != ancien_turbo)
{
Serial2.print(pression,BYTE);
ancien_turbo=new_turbo;
delay(5);
}
}
you want the 4dgl code?