You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-8Lines changed: 27 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,13 +179,30 @@ Up to 20 triggering pins are availble on the GPStar Audio XL. They have JST-PH 2
179
179
| TX2/RX2 | TX2/RX2 | Alternative serial communication port used for debugging. |
180
180
| TEST || A button located on the lower right corner of the board. Pressing this button will play the first track on the micro SD card. |
181
181
182
-
## Configuration file
182
+
## Configuration file and syntax usage
183
183
A configuration file is not required. However you can configure some settings by placing a `GPStarAudio.ini` configuration file into the root of the micro SD card. An example file can be found in this repository. If a configuration file is not found on the micro SD card the default settings are used.
184
184
185
185
Many options can be set, such as the default output amplifier gain, serial communication baud rate, LED settings and to how the trigger pins handle playback.
186
186
187
187
The syntax of the file is very simple, using enclosed square brackets to setup configuration areas.
**[gpstarconfig]:** This area can set the general settings of the board. If none of these settings exist in the ini file, then the system will default to the default settings for each option.
190
207
191
208
**volume_amplifier:** This sets the master gain (in dB) of the stereo speaker amplifier. The range is `-53` (quietest) to `24` (loudest). The default is `0`.
@@ -196,20 +213,22 @@ The syntax of the file is very simple, using enclosed square brackets to setup c
196
213
197
214
**led_off:** Control whether the onboard status LED flashes or not during playback or non playback. Valid values are 0 for allowing the LED to function or `1` for disabling the LED. The default is `0`.
198
215
199
-
## Trigger configuration
200
-
Unique to GPStar Audio XL are the trigger pins. These can be setup so you can play sounds without any coding. You can also conigure the behaviour of these pins by setting them up into the GPStarAudio.ini configuration file. Please refer to the example configuration file located in this repository for usage.
216
+
## Triggering configuration
217
+
Unique to GPStar Audio XL are the triggering pins. These can be setup so you can play sounds without any coding. You can also conigure the behaviour of these pins by setting them up into the GPStarAudio.ini configuration file. Please refer to the example configuration file located in this repository for usage.
201
218
202
219
Note that these do not need to be configured for the trigger pins to operate and if `GPStarAudio.ini` is not on the micro SD card the default settings are loaded for the trigger pins.
203
220
204
-
**[gpstartracks]:** This area contains playback setup and configuration of the 20 trigger pins. The pins are identified by gp1_ prefix in the ini file. The range is from `gp1_` up to `gp20_`.
221
+
This area contains playback setup and configuration of the 20 triggering pins. The pins are identified by gp1_ prefix in the ini file. The range is from `gp1_` up to `gp20_`.
222
+
223
+
**[gpstarmode]:** Valid settings for this is `normal`, or `repeat`. Normal plays the track and it stops when it finishes. Repeat will make the track loop forever unless re triggered again to do something else.
205
224
206
-
**gp#_playback:** Control how the playback is assigned to this trigger. Valid settings are `normal` or `loop`. `normal` will play the file until completion then it stops. `loop` will continuously loop the the audio until the pin is triggered again. Default is `normal`.
225
+
**[gpstartrigger]:** Control how the playback is assigned to this trigger. Valid settings are `press` or `hold`. Press will trigger the pin and play the track. Hold will also trigger the track however releasing the trigger will make it perform an associated action setup with **[gpstarplayback]**.
207
226
208
-
**gp#_trigger:**Set how the audio is triggered. Valid settings are `press` or `hold`. With `press`, when you make contact between the trigger pin and the ground pin below it the audio file will play and will contiinue to play even when you release the contact between the trigger pin and ground pin. With `hold`, you need to make continuous contact between the trigger pin and ground pin for the audio to play, as releasing the contact will cause it to stop. Default is `press`.
227
+
**[gpstarplayback]:**This sets the what the trigger action will do if the trigger is already playing a track. Valid settings are `stop`, `pause`, `restart`. When pause is used, triggering it again will resume the playback of the track where it left off.
209
228
210
-
**gp#_file_number:** The track number on the microSD card. The default is the pin number of this trigger. For example, set this to `100` to play the wav file with the `100_` prefix.
229
+
**[gpstartracks]:** The track number on the MicroSD Card. The default is the pin number of this trigger. For example, set this to 100 to play the wav file with the 100_ prefix.
211
230
212
-
**gp#_volume:** The default volume for the track. Valid ranges are `0` to `-59`, with `0` being the loudest and `-59` being the most quiet. The default is `0`.
231
+
**[gpstartrackvolume]:** The default volume for the individual track playback. Valid ranges are 0 to -59, with 0 being the loudest and -59 being the most quiet. The default is 0.
0 commit comments