Increase baudrate

This commit is contained in:
Kai Vogelgesang 2021-08-29 12:54:33 +02:00
parent 74526fa07d
commit 34fe7f55d0
Signed by: kai
GPG Key ID: 0A95D3B6E62C0879
2 changed files with 4 additions and 4 deletions

View File

@ -16,11 +16,11 @@ channels = [
start_addr = 10
with serial.Serial("/dev/ttyUSB0", 115200) as ser:
with serial.Serial("/dev/ttyUSB0", 500000) as ser:
payload = bytearray(512)
FPS = 20
FPS = 30
FRAME_TIME = 1 / FPS
t = 0

View File

@ -11,7 +11,7 @@ size_t bytes_read = 0;
void setup()
{
Serial.begin(115200); // USB
Serial.begin(500000); // USB
while (!Serial)
{
@ -31,6 +31,7 @@ void loop()
if (packet_ready)
{
send_packet();
Serial.println("Ack.");
}
}
@ -65,7 +66,6 @@ bool update_buffer()
if (bytes_read == UNIVERSE_SIZE)
{
bytes_read = 0;
Serial.println("Ack.");
return true;
}
else