Replacement for regular GPIO (DigitalIn, DigitalOut, DigitalInOut) classes which has superior speed.

Fork of FastIO by Erik -

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Mon May 04 16:42:39 2015 +0000
Parent:
11:327ae1d5fecb
Child:
13:0e21ffc6cb84
Commit message:
FastIn/FastOut didn't properly inherit probably

Changed in this revision

FastIO.h Show annotated file Show diff for this revision Revisions of this file
--- a/FastIO.h	Tue Dec 23 11:47:08 2014 +0000
+++ b/FastIO.h	Mon May 04 16:42:39 2015 +0000
@@ -104,8 +104,7 @@
      * @param pin pin the FastOut object should be used for
      * @param initial (optional) initial state of the pin after construction: default is 0 (low)
      */
-    FastOut() {
-        FastInOut<pin>::FastInOut();
+    FastOut() : FastInOut<pin>::FastInOut() {
         write(initial);
         SET_DIR_OUTPUT;
     }
@@ -142,8 +141,7 @@
      * @param pin pin the FastIn object should be used for
      * @param pinmode (optional) initial mode of the pin after construction: default is PullDefault
      */
-    FastIn() {
-        FastInOut<pin>::FastInOut();
+    FastIn() : FastInOut<pin>::FastInOut() {
         SET_MODE(pinmode);
         SET_DIR_INPUT;
     }