-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserial3
More file actions
33 lines (25 loc) · 700 Bytes
/
Copy pathserial3
File metadata and controls
33 lines (25 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
int a = 5; // creates int a, b, c
int b = 10;
int c = 20;
void setup() // setup
{
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Here is some math: ");
Serial.print("a = ");
Serial.println(a);
Serial.print("b = ");
Serial.println(b);
Serial.print("c = ");
Serial.println(c);
Serial.print("a + b = "); // add
Serial.println(a + b);
Serial.print("a * c = "); // multiply
Serial.println(a * c);
Serial.print("c / b = "); // divide
Serial.println(c / b);
Serial.print("b - c = "); // subtract
Serial.println(b - c);
}
void loop() // empty loop
{
}