Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Bexin3 authored Jan 15, 2023
1 parent 2b1f8f9 commit 8afa48a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/CenteredAnalogRead/CenteredAnalogRead.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "Speeduino.h"

void setup() {
AnalogBegin(12,1);
FastAttachADC(2, 1);
Serial.begin(9600);
}

void loop() {
Serial.println(AnalogCollect());
}

0 comments on commit 8afa48a

Please sign in to comment.