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

machine.Timer #42

Open
godsic opened this issue Dec 12, 2020 · 2 comments
Open

machine.Timer #42

godsic opened this issue Dec 12, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@godsic
Copy link

godsic commented Dec 12, 2020

Hi there,

Any plans to implement machine.Timer class that might be beneficial for, e.g., uniform data sampling, DSP, etc.?

@jaustin jaustin added the enhancement New feature or request label Dec 14, 2020
@jaustin jaustin self-assigned this Dec 14, 2020
@jaustin
Copy link
Contributor

jaustin commented Jan 20, 2021

@godsic we haven't currently got plans to do this, but we're planning to do some work around data sampling, etc over the next few months.

It would really help if you have the time to write a few examples of where and how you think this would help (see for example #49 where we are using some API examples to work out what the right thing to implement is.)

@yanghao
Copy link

yanghao commented Apr 20, 2021

This is particular useful for non-blocking bit-sampling or big-banging, for example, if you want to implement an IR receiver using bit-sampling in a non-blocking way (event-driven way), it is currently hard to do so ... also any plans to upstream the v2 support like v1 directly to micropython?

https://github.com/1010Technologies/pxt-makerbit-ir-receiver/blob/060abe9672b5c9f0eeb281b75997651fa69d8f9a/infrared-receiver.ts#L135

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

No branches or pull requests

3 participants