Delete ReadFast.ino

This commit is contained in:
Bouletmarc 2019-12-29 05:20:27 -05:00 committed by GitHub
parent 662121d4c1
commit e1abb11ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
#include <digitalWriteFast.h>
#define pinNum 9
//int pinNum = 9; //do not use variables, macro will revert to the slower pinMode()
//const int pinNum = 9; //this is a constant, will use port manipulation (fast)
void setup() {
pinModeFast(pinNum, INPUT);
}
void loop() {
bool reading = digitalReadFast(pinNum);
if (reading == ERROR_SEQUENCE) { //ERROR_SEQUENCE defined as 0b10101010
// pinNum is not a const and will always return as HIGH
}
}