mirror of
https://github.com/meshtastic/meshtastic.git
synced 2024-12-25 05:34:11 -08:00
Add "scan and select" input to canned message module doc
This commit is contained in:
parent
aa57b77c69
commit
30cee412b3
|
@ -34,14 +34,15 @@ The list of pre-set messages as configured by the user. Messages should be separ
|
|||
### Input Source
|
||||
|
||||
Input event sources accepted by the canned message module.
|
||||
|
||||
| Value | Description |
|
||||
| :----------: | :------------------------------------------------------------------: |
|
||||
| `_any` | Default. Allows any peripheral input device connected to the device. |
|
||||
| `rotEnc1` | Basic Rotary Encoder |
|
||||
| `upDownEnc1` | Up Down Encoder (use this also for RAK14006 Rotary Encoder) |
|
||||
| `cardkb` | M5 Stack CardKB (this covers RAK14004 Keymatrix) |
|
||||
| `serialkb` | Chatter serial keypad |
|
||||
|
||||
| Value | Description |
|
||||
| :-------------: | :------------------------------------------------------------------: |
|
||||
| `_any` | Default. Allows any peripheral input device connected to the device. |
|
||||
| `rotEnc1` | Basic Rotary Encoder |
|
||||
| `upDownEnc1` | Up Down Encoder (use this also for RAK14006 Rotary Encoder) |
|
||||
| `scanAndSelect` | Single push-button (short and long press) |
|
||||
| `cardkb` | M5 Stack CardKB (this covers RAK14004 Keymatrix) |
|
||||
| `serialkb` | Chatter serial keypad |
|
||||
|
||||
### Rotary Encoder Enabled
|
||||
|
||||
|
@ -236,6 +237,21 @@ If you don't want to broadcast your freetext message, you can use the CardKB to
|
|||
|
||||
Just use UP/DOWN/ENTER to select a predefined message and send it.
|
||||
|
||||
### Scan and Select
|
||||
|
||||
Use a single push-button to select and send predefined messages.
|
||||
|
||||
#### Setup
|
||||
* Connect a normally-open push-button between ground and a GPIO pin of your choice
|
||||
* Configure the canned messages module
|
||||
- Set [Input Source](#input-source) to `scanAndSelect`
|
||||
- Set [Input Broker Pin Press](#input-broker-pin-press) to your chosen GPIO
|
||||
- Define a [list of pre-set messages](#messages)
|
||||
|
||||
#### Usage
|
||||
* Short press: scroll through messages
|
||||
* Long press: send the currently highlighted message to your primary channel
|
||||
|
||||
### Rotary encoder
|
||||
|
||||
Meshtastic supports hardwired rotary encoders as input devices.
|
||||
|
|
Loading…
Reference in a new issue