ftrias / TeensyThreads

MIT License
178 stars 26 forks source link

Implement delay_us class method for delays in micro seconds #26

Closed miltkall closed 2 years ago

miltkall commented 3 years ago

Hello there and many thanks for your great lib! Without it, I would not be able to write my Bachelorthesis.

I hope that you do not mind. The first commit is really formatting of your code. Only that. It was pitty that no formatting was used for your amazing lib.

Then the next commits is the implementation and the docs for that!

Thanks 🥇

ftrias commented 3 years ago

Thanks for the pull request. You formatting looks great but unfortunately the code is already formatted to match the style most common in Teensy core (even though the core is inconsistent) and it's probably best not to change it.

Your idea for a delay_us(x) is great. Please either submit a pull with just that (and not the formatting changes) or I can just add it.

miltkall commented 2 years ago

I writing my thesis now and I will be doing more testing with the code. So I would gladly post it when finished if you are ok with that.