Skip to content

Commit

Permalink
Sidequest - rewrite part 2 (#32)
Browse files Browse the repository at this point in the history
* Fixed pedals calibration (apparently, this was borked for a long time)

* Asynchronous serial I/O

* Every serial device gets it's own I/O process

* Exclusive access mode for get/set commands

* Subscribtions can now be only single-shot

* BlockingValue class enables waiting for value read

* Discover commands from received data
  • Loading branch information
Lawstorant authored Oct 6, 2024
1 parent 445d6d2 commit 49975b3
Show file tree
Hide file tree
Showing 16 changed files with 1,842 additions and 1,641 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "debugpy",
"request": "launch",
"program": "entrypoint.py",
"console": "integratedTerminal",
"console": "internalConsole",
"args": [
"--local",
"--custom"
Expand Down
2 changes: 1 addition & 1 deletion boxflat/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, data_path: str, config_path: str, dry_run: bool, custom: bool
self._panels = {}
self._dry_run = dry_run

self.set_default_size(0, 800)
self.set_default_size(0, 850)
self.set_title("Boxflat")

# self.search_btn = Gtk.ToggleButton() # Search Button
Expand Down
6 changes: 6 additions & 0 deletions boxflat/bitwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ def unset_bit(value, bit_number: int) -> int:

def bit(bit_number: int) -> int:
return set_bit(0, bit_number)


def swap_nibbles(value: int) -> int:
ret = (value & 0x0f) << 4
ret |= (value & 0xf0) >> 4
return ret
Loading

0 comments on commit 49975b3

Please sign in to comment.