Skip to content

Commit

Permalink
wrong code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
devleaks committed Apr 30, 2024
1 parent 6994d44 commit de189ca
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions docs/Resources/Internals/Deck Internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,35 @@ Here is for example, a configuration file for a Loupedeck LoupedeckLive device.
# This is the description of a deck's capabilities for a Loupedeck LoupedeckLive device
#
---
type: Stream Deck +
driver: streamdeck
type: LoupedeckLive
driver: loupedeck
buttons:
- name: 0
action: push
feedback: image
image: [96, 96, 0, 0]
repeat: 8
image: [90, 90, 0, 0]
repeat: 12
- name: left
action: swipe
feedback: image
image: [60, 270, 0, 0]
- name: right
action: swipe
feedback: image
image: [60, 270, 420, 0]
- name: 0
prefix: e
action: [encoder, push]
feedback: none
repeat: 4
# touchscreen in streamdeck package vocabulary
- name: touchscreen
action: swipe
feedback: image
image: [800, 100, 0, 0]
repeat: 6
- name: 0
prefix: b
action: push
feedback: colored-led
repeat: 8
- name: buzzer
action: none
feedback: vibrate
```
## Definition Attributes
Expand Down Expand Up @@ -108,7 +119,6 @@ Feedback ability of the button. Feedback can be:
- `colored-led`: A single LED that can be colored.
- `multi-leds`: Several, single color, LED on a ramp.
- `vibrate`: emit a buzzer sound.
- `sound`: emit a sound.


> [!NOTE] Trick
Expand Down Expand Up @@ -167,7 +177,7 @@ The `REQUIRED_DECK_FEEDBACKS` determine which of the deck's definition `feedback

The `ACTIVATION_NAME` is the string that the button definition must use to trigger that activation (`type` attribute):

```yaml
```yaml hl_lines="3"
- index: 1
name: MASTER CAUTION
type: push
Expand Down

0 comments on commit de189ca

Please sign in to comment.