ftrias / TeensyThreads

MIT License
178 stars 26 forks source link

std::thread example #12

Closed cbaron3 closed 5 years ago

cbaron3 commented 5 years ago

Simple example where you can use std::thread to create an interface which any other class can easily implement for threading. Thought it may be useful cause there is not too much in terms of online documentation for this. The result in this case is that you can blink an LED on a pin using a thread, for some time duration, at some period, with some duty cycle.