increased baud rate
This commit is contained in:
parent
500ef0ed5a
commit
f3e4766113
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue