Most recent activity
-
Thank you for your feedback.
While working on the pebble fonts and getFonts (see https://github.com/espruino/BangleApps/issues/3109) I asked myself if I am not somehow reinventing the wheel. Then I found joaquim's project with lvgl and espruino https://www.joaquim.org/espruino-in-pinetime-40/
I was impressed what a good looking UI he created on espruino. The combination of bangle js os, app ecosystem, ability to be programmed via javascript on a web IDE and a mature embedded UI lib with lot's of widgets, themeing, styles, etc looked very promising.
But I understand that would be a big change.
-
Lvgl is working on the bangle js 2 with espruino. Here is a simple example using the arc that also includes touch handling.
https://github.com/Chriz76/Espruino/tree/lvgl (prototype code)
This is based on the work of joaquim who did a lot more (and better looking) stuff. I already posted about it in the other thread:
https://forum.espruino.com/comments/17463581/What do you think about lvgl on the bangle js 2? After (auto?) creating the js bindings it would allow easy development of nice UIs, but I am not sure if it is worth the work and if the hardware is fast enough. Maybe for a bangle js 3 :-)
-
Espruino can use lvgl. It looks very impressive.
See this post and the videos:
https://www.joaquim.org/espruino-in-pinetime-40/It seems like Lvgl is made to be used on different hardware. The attached pictures are from joaquim. He also wrote a javascript wrapper.
I integrated lvgl in my bangle build. First it used too much ram and I had to reduce the variable count. Now I am stuck on a boot loop when installing the firmware. I really would like to build some UIs for bangle js 2 with lvgl.
-
-
Tried to follow https://github.com/espruino/Espruino/blob/master/README_Building.md to build bangle js 2. Used a 24 Ubuntu default installation but got some problems. Hope you can help me.
Provision.sh didn't work so I used the manual way, but I had to change the commands and finally got all requirements installed. But it seems that python 3 is not working because I get the rangex range error. So tried to install Python2.
For smaller things I used the github actions. But now I want to integrate some more complex c code and want to do compile locally. The github action uses ubuntu 20. So maybe that's the trick?
What's the easisest and fastest way to get a local build environment running. Thank you so much!
-
Hello,
Bangle.getHealthStatus('day')
should give you only the steps of the current day. So depending on your usecase this might solve your problem.
You can try to reset the counter using
Bangle.setStepCount(0)
If this is working like you want it then you could trigger it by a timer. Make sure the timer is setup correctly. Maybe you need to set it up in onInit as well to survive reboots.
Maybe there are better solutions :-)
Hello @devsnd, my sources can be found at https://github.com/Chriz76/Espruino/tree/masterOld .
I used github for building the firmware so a lot of little commits where I tried different things But the changes itself affect only a few files.
I modified the firmware and did not create an app. But with my long term experiences I don't think that this is necesarry:
Even after several weeks the watch is still watertight. The baramoter hole seems to be the most important. The glue on the button already partly vanished. And even if glued the button could be used to do a hard reset.
Double tapping twice (4 taps with a short delay after the first two taps) to simulate a button press worked well in regular use. It should be possbile to implement this as an app. But using double tapping on the other side of the watch to simulate a long press often lead to false detected presses and returns to the clock. So I changed it to 5 double taps while my watersports app is running.
I also used the charging state for a hard reset.
For you it might just be ok to start with a global hook as app for 2x double and 5x double tap. Then glue the barometer hole and the button. If you really need a hard reset then push the glued button hard and it will work.