Blame view

projetSC/FPGA/test_laser/test_laser.ino 354 Bytes
1f48dd44   mdelapor   mise en ligne du ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  void setup() {
    // put your setup code here, to run once:
    Serial.begin(9600);
  }
  
  void loop() {
    // put your main code here, to run repeatedly:
    int sensorValue = analogRead(A0);
    Serial.print("Cible : ");
    Serial.println(sensorValue);
    sensorValue = analogRead(A1);
    Serial.print("Pas cible : ");
    Serial.println(sensorValue);
    delay(500);
  }