From 6acff392c0b15e1c5766587c415e0857d55aa045 Mon Sep 17 00:00:00 2001 From: Bouletmarc Date: Sun, 29 Dec 2019 05:20:34 -0500 Subject: [PATCH] Delete ToggleFast.ino --- .../Examples/ToggleFast/ToggleFast.ino | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 libraries/digitalWriteFast/Examples/ToggleFast/ToggleFast.ino diff --git a/libraries/digitalWriteFast/Examples/ToggleFast/ToggleFast.ino b/libraries/digitalWriteFast/Examples/ToggleFast/ToggleFast.ino deleted file mode 100644 index 4562c12..0000000 --- a/libraries/digitalWriteFast/Examples/ToggleFast/ToggleFast.ino +++ /dev/null @@ -1,45 +0,0 @@ -#include -#define pinNum 9 -//int pinNum = 9; //do not use variables, macro will revert to the slower digitalWrite() -//const int pinNum = 9; //this is a constant, will use port manipulation (fast) -void setup() { - pinModeFast(pinNum, OUTPUT); -} - -void loop() { -//the pin is toggled multiple time before looping is because it took too long that the pin stayed low for 600ns, while clearing or setting the pin only took 125ns. For 16MHz Arduino Uno. - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); - digitalWriteFast(pinNum, HIGH); - digitalWriteFast(pinNum, LOW); -} \ No newline at end of file