-
-
-
Many thanks for the replies. @Ganblejs put me on the right track with listeners. Here's the working code...
var menu = { "" : { "title" : " Menu Test" }, "Do Nothing" : function() {}, "Close Menu" : function() { E.showMenu(); Bangle.on('touch', screenTouch); } }; function screenTouch() { Bangle.removeListener("touch", screenTouch); E.showMenu(menu); } g.clear(); E.showMenu(menu);
-
How do you terminate events in Bangle 2? Here's the problem I'm having...
var menu = { "" : { "title" : " Menu Test" }, "Do Nothing" : function() {}, "Close Menu" : function() { E.showMenu(); } }; Bangle.on('touch', function(n,ev) { E.showMenu(menu); }); g.clear(); E.showMenu(menu);
After closing the menu there, a tap on the screen opens it again. However, if you tap where the "Close Menu" choice was, the menu promptly closes again. What's the best fix for this?
-
You can always buy a new watch if you drop it in the water, but the wrong UI will still be the wrong UI! :) These are different considerations. With being able to replace the battery or not being yet another consideration.
What I'd really love though would be the Bangle phone. You've started at the smallest end of the chain. So going upwards should be easier than how we got to the current horrible state of affairs. Desktop > laptop > phone and tablet > watch. Going in the other direction should result in something better, and all running Espruino, of course!
-
I've both the Bangle 1 and 2, and while I really like the 2's touchscreen, I've realised there is a case for buttons. Namely, when you're wearing gloves. So if there's ever to be a Bangle 3, it having buttons and a full touchscreen would be the way to go, I think. (Unless it'd accept voice-commands. :) )
-
-
On the page here: http://www.espruino.com/graphical_menu it describes how to set the height of the font being used, the y offset and so on. However, I've not been able to make the changes to the default values take place. So where in the example menu on that page should they be inserted?
Also, am I right in assuming the y offset changes where the top of the menu will be on the screen?
Thanks in advance.
-
-
-
A follow up to my problem above about not being able to install Firmware 2v14 on my Bangle 2. I also have a Bangle 1, and I saw it was behind in firmware updates too, so I tried updating it to 2v14 too. There was no app for it to do this though, so I followed the manual approach. And as with Bangle 2, 2v14 didn't work, but 2v13 did. Then I noticed right at the end of the Firmware Update instructions it now says you can update the Firmware from the Web IDE, (via Flasher in the Settings menu), so I tried that and it installed 2v14 on both Bangle 1 and Bangle 2. So using Flasher seems the best approach at the moment. At least for me!
-
-
Those were from the Play Store. So I've spent a bit too much time since trying the different Music Players on F-Droid, of which there's twenty or so! Most are Gadgetbridge friendly, although not all of them behave as they should with music events. ie. You'd ask for the previous track and the player would switch to it but no musicinfo event would be received acknowledging the change. But a lot did behave, such as VCL and a more lightweight one called Auxio. I've written a little app for testing music players, which I'll get around to adding to github soon.
I've set myself the task of getting the Bangle 2 to handle music like my aging Pebble does. With the Pebble, I can not only control the phone's music players and FM Radio, but switch between them, thanks to the Android app Music Boss. I'm guessing switching between apps like that isn't possible with gadgetbridge yet?
-
-
-
I'm having the exact same problem as Purple-Tentacle was having. I can get gadgetbridge to control music on my Android phone, but I can't figure out how to get it to return info such as the artist name, etc. How do you use the GB function to do that? The following (taken from the espruino gadgetbridge docs) just gives "My Artist" and not the name of the artist of the music being played.
GB({"t":"musicinfo","artist":"My Artist","album":"My Album","track":"Track One","dur":241,"c":2,"n":2})
-
-
Thanks for that. I was afraid it was probably the case! And I was worrying about it conflicting with other apps drawing to the screen.
Are you stuck with where the screen buffer is? As I was wondering if you could have two and choose one or the other as the active one that's flipped to the screen. Both could be continued to be updated then.
Your overlay approach does sound the best way to go though.
-
Bangle.setLCDOffset() promises to do what I'd like to do, (offset the current screen to display something else, then return to the previous screen), but I can't get it to work in Bangle 2. (Nothing changes when I give it an offset.) Is there a way to make it work that I've yet to discover, or a workaround if it doesn't?
-
The nrfConnect manual method was the approach we had to use before the Firmware Update option was added to the App Loader. That the manual approach worked for you does suggest the App Loader may be the source of this 2v14 problem. Something for @Gordon to look into after his holiday. :)
-
-
-
-
I'm using that and hadn't known of it, so thanks for that.