From 875994233a7b52c64c0a4c49e24af3ee21df420c Mon Sep 17 00:00:00 2001 From: ivanseidel Date: Wed, 8 Apr 2015 01:17:44 -0300 Subject: [PATCH] Compatible with 1.5.x specification --- README.md | 14 ++++-------- {images => extras}/ArduinoThread.png | Bin keywords.txt | 31 +++++++++++++++++++++++++++ library.properties | 9 ++++++++ 4 files changed, 44 insertions(+), 10 deletions(-) rename {images => extras}/ArduinoThread.png (100%) create mode 100644 keywords.txt create mode 100644 library.properties diff --git a/README.md b/README.md index 2c91aa3..16af40d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -![ArduinoThread Logo](https://raw.githubusercontent.com/ivanseidel/ArduinoThread/master/images/ArduinoThread.png) +![ArduinoThread Logo](https://raw.githubusercontent.com/ivanseidel/ArduinoThread/master/extras/ArduinoThread.png) -No, Arduino does not support "REAL" parallel tasks (aka Threads), but we can make use of this Library to +Arduino does not support "REAL" parallel tasks (aka Threads), but we can make use of this Library to improve our code, and easily schedule tasks with fixed (or variable) time between runs. This Library helps to maintain organized and to facilitate the use of multiple tasks. We can @@ -14,6 +14,7 @@ filtering inside it, leaving the main loop, just for logic and "cool" part. 1. "Download":https://github.com/ivanseidel/ArduinoThread/archive/master.zip the Master branch from gitHub. 2. Unzip and modify the Folder name to "ArduinoThread" (Remove the '-master') 3. Paste the modified folder on your Library folder (On your `Libraries` folder inside Sketchbooks or Arduino software). +4. Restart Arduino IDE **If you are here, because another Library requires this class, just don't waste time reading bellow. Install and ready.** @@ -169,11 +170,4 @@ interrupts(); // This will enable the interrupts egain. DO NOT FORGET! - `Thread* ThreadController::get(int index)` - Returns the Thread on the position `index`. ### You don't need to know: -- Nothing, yet ;) - -## Version History - -* `(Jun/2014): New Example: ControllerWithTimer` -* `1.0 (2013-05-11): Initial release.` - -![ArduinoThread](https://d2weczhvl823v0.cloudfront.net/ivanseidel/ArduinoThread/trend.png) +- Nothing, yet ;) \ No newline at end of file diff --git a/images/ArduinoThread.png b/extras/ArduinoThread.png similarity index 100% rename from images/ArduinoThread.png rename to extras/ArduinoThread.png diff --git a/keywords.txt b/keywords.txt new file mode 100644 index 0000000..d0cc5ca --- /dev/null +++ b/keywords.txt @@ -0,0 +1,31 @@ +####################################### +# Syntax Coloring +####################################### + +####################################### +# Datatypes (KEYWORD1) +####################################### + +Thread KEYWORD1 +ThreadController KEYWORD1 + +####################################### +# Methods and Functions (KEYWORD2) +####################################### + +runned KEYWORD2 +setInterval KEYWORD2 +shouldRun KEYWORD2 +onRun KEYWORD2 +run KEYWORD2 + +# Specific of ThreadController +add KEYWORD2 +remove KEYWORD2 +clear KEYWORD2 +size KEYWORD2 +get KEYWORD2 + +####################################### +# Constants (LITERAL1) +####################################### diff --git a/library.properties b/library.properties new file mode 100644 index 0000000..a22d9e5 --- /dev/null +++ b/library.properties @@ -0,0 +1,9 @@ +name=ArduinoThread +version=2.0 +author=Ivan Seidel +maintainer=Ivan Seidel +sentence=A simple way to run Threads on Arduino +paragraph=This Library helps to maintain organized and to facilitate the use of multiple tasks. We can use Timers Interrupts, and make it really powerfull, running "pseudo-background" tasks on the rug. +category=Timing +url=https://github.com/ivanseidel/ArduinoThread +architectures=* \ No newline at end of file