increased baud rate

This commit is contained in:
Paul Zinselmeyer 2024-08-29 11:20:03 +02:00
parent 500ef0ed5a
commit f3e4766113
Signed by: pfzetto
GPG key ID: B471A1AF06C895FD
2 changed files with 4 additions and 5 deletions

View file

@ -15,7 +15,7 @@ void setup()
pinMode(GREEN_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT);
pinMode(BLUE_LED, OUTPUT); pinMode(BLUE_LED, OUTPUT);
Serial.begin(9600); Serial.begin(115200);
} }
char* result[3]; char* result[3];
@ -48,8 +48,7 @@ void loop()
analogWrite(GREEN_LED, gb); analogWrite(GREEN_LED, gb);
analogWrite(BLUE_LED, bb); analogWrite(BLUE_LED, bb);
String out = (String)rb + ";" + (String)gb + ";" + (String)bb; //String out = (String)rb + ";" + (String)gb + ";" + (String)bb;
Serial.println(out); //Serial.println(out);
} }
} }

View file

@ -34,7 +34,7 @@ fn main() {
return; return;
}; };
let conf_res = serial.reconfigure(&|settings| { let conf_res = serial.reconfigure(&|settings| {
settings.set_baud_rate(serial::Baud9600)?; settings.set_baud_rate(serial::Baud115200)?;
settings.set_char_size(serial::Bits8); settings.set_char_size(serial::Bits8);
settings.set_parity(serial::ParityNone); settings.set_parity(serial::ParityNone);
settings.set_stop_bits(serial::Stop1); settings.set_stop_bits(serial::Stop1);