Giter Club home page Giter Club logo

Comments (14)

hrmckay avatar hrmckay commented on August 15, 2024 2

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.

lupyuen avatar lupyuen commented on August 15, 2024 1

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.

JF002 avatar JF002 commented on August 15, 2024 1

@ZephyrLabs Please submit your PRs to the develop branch (https://github.com/JF002/Pinetime/blob/master/doc/contribute.md). Thanks!

from infinitime.

JF002 avatar JF002 commented on August 15, 2024

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.

hrmckay avatar hrmckay commented on August 15, 2024

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.

lupyuen avatar lupyuen commented on August 15, 2024

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...

Screenshot 2020-10-08 at 10 27 39 AM

A workaround is to declare dayofweekday as a static variable in Clock.cpp...

Screenshot 2020-10-08 at 10 46 05 AM

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.

lupyuen avatar lupyuen commented on August 15, 2024

@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.

ZephyrLabs avatar ZephyrLabs commented on August 15, 2024

@lupyuen I shall submit a PR for marking those regions.
but I believe the section could be more broadened with,

  1. 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.

lupyuen avatar lupyuen commented on August 15, 2024

@ZephyrLabs Thanks! :-) Have a chat with JF... See how best we can guide our newbies

from infinitime.

ZephyrLabs avatar ZephyrLabs commented on August 15, 2024

No problem, please tag me, I will respond as soon as possible :-)

from infinitime.

ZephyrLabs avatar ZephyrLabs commented on August 15, 2024

@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.

ZephyrLabs avatar ZephyrLabs commented on August 15, 2024

@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.

lupyuen avatar lupyuen commented on August 15, 2024

Thanks that should be helpful :-)

from infinitime.

ZephyrLabs avatar ZephyrLabs commented on August 15, 2024

welcome :-)

from infinitime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.