From 8afa48aa53ec903f6abc630d1dbdd94c30ea06dd Mon Sep 17 00:00:00 2001 From: Bexin3 <88098139+Bexin3@users.noreply.github.com> Date: Sun, 15 Jan 2023 14:35:54 +0000 Subject: [PATCH] Add files via upload --- examples/CenteredAnalogRead/CenteredAnalogRead.ino | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/CenteredAnalogRead/CenteredAnalogRead.ino diff --git a/examples/CenteredAnalogRead/CenteredAnalogRead.ino b/examples/CenteredAnalogRead/CenteredAnalogRead.ino new file mode 100644 index 0000000..404c686 --- /dev/null +++ b/examples/CenteredAnalogRead/CenteredAnalogRead.ino @@ -0,0 +1,11 @@ +#include "Speeduino.h" + +void setup() { +AnalogBegin(12,1); +FastAttachADC(2, 1); +Serial.begin(9600); +} + +void loop() { +Serial.println(AnalogCollect()); +} \ No newline at end of file