jeffmer / p8apps Goto Github PK
View Code? Open in Web Editor NEWEspruino Firmware and Apps for the P8 Smartwatch together with drivers to support these Apps
License: MIT License
Espruino Firmware and Apps for the P8 Smartwatch together with drivers to support these Apps
License: MIT License
An wrong BTN pressed event will fired automaticly with out release event when i touching the ico to enter an app with the code load( xxx.app.js)
๏ผ
And then the BTN pressed event will not fired when i press the button sides of the watch manualy but release event.
And the second press will generate the right event include the press and release event.
I don't know why, and can't find the reason : (
But the BTN event has not appeared when i run the same app from the webIde Storage directly.
I's the code in xxx.app.js here
setWatch(pressedFun, D17,{repeat:true,edge:"rising"});
setWatch(releasedFun, D17,{repeat:true,edge:"falling"});
Thanks!
i have built the The firmware based the repository https://github.com/jeffmer/Espruino, but the Version number is espruino_2v08.447_p8
not the espruino_2v08.63_p8
??
Can you tell me how to update?
Welcome back @jeffmer!!
Do you have updates (2v10) for the repository, it is a little older https://github.com/jeffmer/Espruino
Hi Thanks for amazing lcd_spi_unbuf library. I am using this library (C code) for ID107 HR plus Color which has 80x160 ST7735 oled
How many colors are supported for this lib? I have set the SPISENDMANY_BUFFER_SIZE=80 in board file
For android users (as me) having notifications working would be a great feature.
Hi,
Just want to say thanks sharing your Espruino version with emulation of the Bangle functionality on the P8.
Installed it yesterday, your Espruino works fine on the P8, including the functions for the lcd. Also tried your Apploader, also works fine.
Excellent work!
Last year I created my own Bangle-compliant P8 module, using the unbuf Espruino version as shared by @atc1441. But in the meantime I have switched to other things.
Maybe my list of supported Bangle compliant functionality inspires you for extensions ;-). I tried to mimic as much Bangle functions as possible, because it avoids the need to write proper documentation.
Note that my getHeartRate and getStepcount functions do not deliver the right data, still struggling with correct code for interpreting HW-registers. Will have a look at your code for inspiration ;-)
>P8
={
buzz: function (time,strength) { ... },
g: Graphics: {
flip: function () { [native code] },
on: function () { ... },
off: function () { ... }
},
getAccel: function () { ... },
getBattery: function (s) { ... },
getHeartRate: function () { ... },
getStepCount: function () { ... },
isCharging: function () { ... },
isLCDOn: function () { ... },
LCDOff: function () { ... },
LCDOn: function () { ... },
setHRMPower: function (isOn) { ... },
setLCDBrightness: function (bri) { ... },
setLCDPower: function (isOn) { ... },
setLCDTimeout: function (secs) { ... },
setPollInterval: function (int) { ... },
"#onlcdPower": function (isOn) { ... },
"#onbutton": function (pin) { ... },
"#oncharging": function (isCharging) { ... },
"#onswipe": function (direction) { ... },
"#ontouch": function (x,y,long) { ... },
"#onaccel": function (xyz) { ... },
"#onfaceup": function (up) { ... },
"#ontwist": function () { ... },
brightness: 7, LCDTimeout: 5000, pollInterval: 2, faceUp: true, twist: false }
The source of my P8 modules is added below, for anyone that is interested. Just for reference, no guarantees.
BangleCompliantModuleForP8.js.txt
I am seeing a periodical issue with the clock, it is the 3rd time that the clock losses an hour but minutes are accurate.
I set time from App loader , for many hour the time is correct but at certain time time is an hour less.
When I am using menu.js with some app included from bangleApps (alarm and file manager e.g.) the watch stops working and gives error messages about low memory on web IDE.
File Manager app is just modified to include the menu.js but the Alarm app is slightly modified but the part that uses menu.js is untouched, and even if the alarm.js (the part of the app that handles alarm alerts and vibrations) is left empty the problem still continues. I couldn't quite understand what is causing this.
Also strangely enough the alarm app freezes after adding two alarms, after that you can't even click on the entries to delete/edit them or add new alarms.
Sorry for posting here, didn't see where to post on your Espruino fork. I am using it now with my Pinetime and am wondering if you have folded your SPI changes into Espruino master? They seem harmless and can even be #ifdef'd for specific devices. Any plan to merge?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.