Comments (14)
Thanks for the information. I should have read the documentation more carefully. I was going to close this issue but you seem to be using it as a message board so I will leave it open.
Hugh
from infinitime.
FYI I'm working on a new Simulator for Rust on Mynewt... Hopefully the Rust Compiler will do better validation and prevent such Sandbox problems.
The watch face gets compiled as a separate Rust Library and linked into the PineTime Firmware, also into the Simulator, like this...
https://crates.io/crates/barebones-watchface
This also allows watch faces to be shared easily as Rust Libraries.
from infinitime.
@ZephyrLabs Please submit your PRs to the develop branch (https://github.com/JF002/Pinetime/blob/master/doc/contribute.md). Thanks!
from infinitime.
Could you give us the link to your repo so that we can have a look at the code?
Note that I'm not using Github Actions, and I might not be able to help you, but I hope someone else will be able to help you debug this issue.
from infinitime.
Since lupyuen set up these actions I think he is probably the best person to answer this, but I couldn't see any way to post an issue to his documentation. I am using https://github.com/hrmckay/Pinetime
Hugh
from infinitime.
Hi @hrmckay: The InfiniTime Simulator runs in a "Sandbox" and only changes to Clock.cpp are accepted. No other files may be changed. This is indicated in the doc...
A workaround is to declare dayofweekday
as a static variable in Clock.cpp...
I'll update this in the doc, thanks for raising this.
BTW you can submit a PR for my doc here...
https://github.com/lupyuen/pinetime-rust-mynewt/blob/master/rust/app/src/simulator.md
from infinitime.
@ZephyrLabs We spoke about marking the sections in Clock.cpp, now might be a good time to revisit this :-)
// Define Your Widgets Here
...
// Create Your Widgets Here
...
// Refresh Your Widgets Here
...
from infinitime.
@lupyuen I shall submit a PR for marking those regions.
but I believe the section could be more broadened with,
- normal refresh, using the
Clock::refresh()
function Independent of time change...
(useful for things such as animations)
2.Refresh based upon time change within the if(currentDateTime.IsUpdated())
clause
(useful for things like the Analog clock(future), AM/PM time Indicators etc.)
from infinitime.
@ZephyrLabs Thanks! :-) Have a chat with JF... See how best we can guide our newbies
from infinitime.
No problem, please tag me, I will respond as soon as possible :-)
from infinitime.
@JF002 which branch can I leave a PR for the marked sections of Clock.cpp ?
I have a opinion of rearranging the entire Clock.cpp so that its both functional and acts as a barebones design template for future designs...
from infinitime.
@JF002 I have added commented regions for addition of new widgets, Pull request to Develop Branch created, please continue the topic from there, Thank you! #90
from infinitime.
Thanks that should be helpful :-)
from infinitime.
welcome :-)
from infinitime.
Related Issues (20)
- Turn off accelerometer in night mode HOT 3
- Can't connect to Gadgetbridge after Firmware 1.14 update. HOT 5
- Screen shifting upwards HOT 8
- Assert call being removed during compilation, causing NULL pointer dereference in ble_ll_task HOT 6
- Using GDB debugger in devcontainer does not load source map
- Stopwatch lap counter only goes up to 20 laps HOT 1
- Unable to update InfiniTime successfully
- Add unit testing framework and skeleton test project HOT 4
- looping recovery mode,.... infinite loop. ITime. HOT 2
- Not reconnecting to Gadgetbridge HOT 7
- What watch faces currently support weather? HOT 9
- Whats the best way to track what and when the next release HOT 2
- Add active alarm indicator to watch face HOT 4
- Fix Stopwatch Side Button Behavior HOT 1
- Use separate screens for switching off ringing alarm and for alarm configuration
- Firmware update with pinetime-mcuboot-app-dfu-1.14.0.zip and GadgetBridge fails HOT 2
- Wake-up Alarm does not sound in Sleep mode HOT 4
- Text disappears from watchface on chimes HOT 1
- BLE bond deleted after 2 reboots without connectivity to central HOT 3
- PineStore announcement : the current flash chip is EoL, a new one will be used for future PineTime batches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinitime.