Delete ReadFast.ino
This commit is contained in:
parent
662121d4c1
commit
e1abb11ab0
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue