Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change interval of timer #8

Open
julianlatasa opened this issue Mar 12, 2019 · 3 comments
Open

Change interval of timer #8

julianlatasa opened this issue Mar 12, 2019 · 3 comments

Comments

@julianlatasa
Copy link

It is posible to change the interval from 1000ms (1sec) to 100ms (0,1sec), so I can set time intervals like 750ms? Or there is any restriction on Garmin?

@adamml
Copy link
Owner

adamml commented Mar 13, 2019

Unfortunately, this is a restriction on data fields in Garmin's ConnectIQ system

http://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/WatchUi/DataField.html#compute-instance_method

@julianlatasa
Copy link
Author

I was thinking, what about an inside timer in the compute method? So you set the time in the timer for 250ms or 100ms, and after 10 executions it stop and return to the compute method. I dont know the impact of this in the screen or the vibration response. Just an idea.

http://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/Timer/Timer.html

if you dont have time, I can fork an try if you want.

@adamml
Copy link
Owner

adamml commented Mar 14, 2019

So, I think the issue is that the DataField compute method is called by the activity approximately every 1000ms (but not exactly).

Feel free to fork it and try though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants