diff --git a/GPIO/Arduino/ring.ino b/GPIO/Arduino/ring.ino new file mode 100644 index 0000000000000000000000000000000000000000..8abbbe1c649cf381a526afa3822a439dfa1e09a8 --- /dev/null +++ b/GPIO/Arduino/ring.ino @@ -0,0 +1,32 @@ +// +// ring.ino +// +// ring oscillator test +// +// Neil Gershenfeld 8/12/21 +// +// This work may be reproduced, modified, distributed, +// performed, and displayed for any purpose, but must +// acknowledge this project. Copyright is retained and +// must be preserved. The work is provided as is; no +// warranty is provided, and users accept all liability. +// + +void setup() { + pinMode(0,OUTPUT); + } + +void loop() { + while (1) { + /* + if (digitalRead(1)) + digitalWrite(0,LOW); + else + digitalWrite(0,HIGH); + */ + if (digitalReadFast(1)) + digitalWriteFast(0,LOW); + else + digitalWriteFast(0,HIGH); + } + }