Blame view

telemetry/code/robot/analogread_demo/analogread_demo.ino 357 Bytes
b0f61ccf   Christopher Stone   Working demo for ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Read analogue data, send it on
 * 
 * A starting point for a robot monitoring system
 * By the UoN Robot Wars project, 2018
 * This code is under the GPL
 */

#include <math.h>
 
void setup() {
  Serial.begin(9600);
  Serial.println("Hello, World");
  pinMode(13, OUTPUT);
}

void loop() {
  float avalue = analogRead(A0);
  Serial.println(avalue);
}