We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693e4f9 commit 1464530Copy full SHA for 1464530
arduino_code/arduino_code.ino
@@ -1,15 +1,12 @@
1
int incomingByte = 0;
2
int led_green = 2;
3
int led_red = 6;
4
-int temp_sensor = 0;
+
5
6
int A = 65;
7
int B = 66;
8
int C = 67;
9
int D = 68;
10
-int E = 69;
11
-
12
-int temp_sensor_value;
13
14
void setup() {
15
// put your setup code here, to run once:
@@ -40,15 +37,6 @@ void loop() {
40
37
if (incomingByte == D) {
41
38
digitalWrite(led_red, LOW);
42
39
}
43
- if (incomingByte == E) {
44
- temp_sensor_value = analogRead(temp_sensor);
45
46
- float voltage = (temp_sensor_value/1024.0) * 5.0;
47
- float temperature = (voltage - .5) * 100;
48
49
- Serial.print("La température est de ");
50
- Serial.println(temperature);
51
- }
52
53
54
0 commit comments