simplemusic: re-add button controls

master
Andre 2025-06-09 10:40:18 -04:00
parent c3acf511e0
commit e7c2c62b17
2 changed files with 2 additions and 6 deletions

View File

@ -10,12 +10,10 @@ Requires [Gadgetbridge](https://www.espruino.com/Gadgetbridge).
2. Open a music player on your Android phone. 2. Open a music player on your Android phone.
3. Open this app on your Bangle.js. 3. Open this app on your Bangle.js.
Note: On startup, Simple Music will ping Gadgetbridge for track data by quickly turning the volume up, then down. This only happens once, and shouldn't be noticeable in most cases.
## Features ## Features
- Shows the current song title and album - Shows the current song title and album
- Provides buttons for changing or pausing the current track. - Provides on-screen buttons for changing or pausing the current track.
- Supports swiping - Supports swiping
## Controls ## Controls

View File

@ -107,11 +107,9 @@ function initialize() {
}); });
// Toggle play/pause if the button is pressed // Toggle play/pause if the button is pressed
/*
setWatch(function() { setWatch(function() {
sendCommand(appState.state === PlaybackState.paused ? Command.play : Command.pause, true); sendCommand(appState.state === PlaybackState.paused ? Command.play : Command.pause, true);
}, BTN, {edge:"rising", debounce:50, repeat:true}); }, BTN, {edge: "falling", debounce: 50, repeat: true});
*/
// Goad Gadgetbridge into sending us the current track info // Goad Gadgetbridge into sending us the current track info
sendCommand(Command.volumeup, false); sendCommand(Command.volumeup, false);