Skip to content

Conversation

@JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Mar 9, 2023

  • Start command and have it try to connect until the module is plugged in
  • Cleanups
    • Allow listing connected modules
    • Allow getting B1 display status
    • Properly document LED Matrix commandline
    • Properly document B1 Display commandline

Allows to try connecting to the device until it appears.
Useful for starting the command before the module is plugged in.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Open serialport only once. Instead of 400x per image.
Sending a single row went from 2ms to 0.5ms.
Still pretty slow.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Example:

```sh
> inputmodule-control --list
/dev/ttyACM0
  VID     0x32AC
  PID     0x0021
  SN      FRAKDEAM0000000000
  Product Lotus_B1_Display
```

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Usually I do this to match more in the future.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
By default the app tries to connect with the device and aborts if it can't
connect. But you might want to start the app, have it wait until the device is
connected and then send the command.

```
> inputmodule-control b1-display --pattern black
Failed to find serial devivce. Please manually specify with --serial-dev

> inputmodule-control --wait-for-device b1-display --pattern black

> inputmodule-control --wait-for-device b1-display --pattern black
Device already present. No need to wait. Not executing command.
```

Signed-off-by: Daniel Schaefer <dhs@frame.work>
If running with b1-display parameter, only match B1 displays.Match
corresponding module type.
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Circle is on the left...

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg merged commit f42f437 into main Mar 10, 2023
@JohnAZoidberg JohnAZoidberg deleted the demo branch March 21, 2023 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants