Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Johnson <ben@binarylogic.com>
  • Loading branch information
binarylogic committed Apr 12, 2024
1 parent b8188fd commit b762236
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def callback(message):
pass

# Start listening for updates in an async.io Task
altitude.start_listening(callback: callback)
asyncio.create_task(altitude.start_listening(callback: callback))
```

## State
Expand All @@ -87,12 +87,14 @@ your object with the processor's state.
```python
altitude.audiosync: bool | None # Current state of audiosync
altitude.bypass: bool | None = None # Current state of bypass
altitude.decoder: bool | None = None # Current decoder being used
altitude.dim: bool | None = None # Current state of dim
altitude.id: str | None = None # Unique ID of the processor
altitude.mute: bool | None = None # Current state of mute
altitude.presets: dict = {} # Dictionary of all presets and their names
altitude.source: str | None = None # Current source
altitude.sources: dict = {} # Dictionary of all sources and their names
altitude.upmixer: str | None = None # Current upmixer being used
altitude.version: str | None = None # Software version of the processor
altitude.volume: float | None = None # Current volume level in dB
```
Expand Down Expand Up @@ -175,7 +177,8 @@ await altitude.power_off()
### Presets

```python
await altitude.preset_load(id: int)
await altitude.preset_get()
await altitude.preset_set(id: int)
```

### Quick optimized
Expand Down

0 comments on commit b762236

Please sign in to comment.