From e7c2c62b17fd5019380d85413be9cbff168da0ad Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 9 Jun 2025 10:40:18 -0400 Subject: [PATCH] simplemusic: re-add button controls --- apps/simplemusic/README.md | 4 +--- apps/simplemusic/app.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/simplemusic/README.md b/apps/simplemusic/README.md index 7309f0cc0..b93342e6c 100644 --- a/apps/simplemusic/README.md +++ b/apps/simplemusic/README.md @@ -10,12 +10,10 @@ Requires [Gadgetbridge](https://www.espruino.com/Gadgetbridge). 2. Open a music player on your Android phone. 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 - 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 ## Controls diff --git a/apps/simplemusic/app.js b/apps/simplemusic/app.js index f8112089f..1cd0d3dbc 100644 --- a/apps/simplemusic/app.js +++ b/apps/simplemusic/app.js @@ -107,11 +107,9 @@ function initialize() { }); // Toggle play/pause if the button is pressed - /* setWatch(function() { 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 sendCommand(Command.volumeup, false);