PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
John Robinson 4aaa09bd80
initial commit
pirms 3 gadiem
..
LED.cpp initial commit pirms 3 gadiem
LED.h initial commit pirms 3 gadiem
README.txt initial commit pirms 3 gadiem
Runnable.h initial commit pirms 3 gadiem
main.ino initial commit pirms 3 gadiem

README.txt

The purpose of this example is to demonstrate how to use TeensyThreads as part of std and implement it such that a class could easily implement threading without much overhead
The Runnable.h file is an abstract definition of how to use threads
Any class that dervives from Runnable just needs to implement the runTarget(void *args) and start the thread.
This specific example extends an example LED class such that an LED object can be constructed to blink for some duration, at some period, with some duty cycle