mirror of
https://github.com/brmlab/ledbar.git
synced 2025-06-09 05:14:03 +02:00
Change serial speed from 115200 to 57600
With non-blinkenlight setups, 115200 communication is not reliable at all. About 26kbaud should be enough bandwidth anyway.
This commit is contained in:
parent
ab83b7ea0f
commit
77f6d83bac
3 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ int wait = 10;
|
|||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
Serial.begin(57600);
|
||||
int i = 0, led = 0;
|
||||
for (i = 0; i < NUM_TLCS; i++)
|
||||
lb[i].begin(B1100000 | i);
|
||||
|
|
|
@ -341,7 +341,7 @@ int main(int argc, char* argv[])
|
|||
if (fp) {
|
||||
struct termios t;
|
||||
tcgetattr(fileno(fp), &t);
|
||||
cfsetspeed(&t, B115200);
|
||||
cfsetspeed(&t, B57600);
|
||||
tcsetattr(fileno(fp), TCSADRAIN, &t);
|
||||
sleep(2);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ def main():
|
|||
except getopt.GetOptError:
|
||||
print_usage()
|
||||
return 1
|
||||
speed = 115200
|
||||
speed = 57600
|
||||
number = 20
|
||||
show_help = False
|
||||
for k, v in opts:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue