Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
PB connexion serveur wifi
#7
Faites un programme très simple. Comme ci apres. Il fait clignoter une LED en GPIO 17, si vous en avez une et donne le temps en ms depuis la mise en route sur le port série à 115200 bauds. Vous essayez et regardez s'il sort quelque chose sur le moniteur série.

Cdlt
André

int LED=17;
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED as an output.
  pinMode(LED, OUTPUT);
  //Ports Série ESP
  Serial.begin(115200);
  Serial.println("Booting");
}
// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(100);                      // wait for a second
  digitalWrite(LED, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);    
                    // wait for a second
  Serial.println(millis());
}
Répondre


Messages dans ce sujet
PB connexion serveur wifi - par Gilou31620 - 09-06-2024, 04:41 PM
RE: PB connexion serveur wifi - par AL53 - 09-06-2024, 06:25 PM
RE: PB connexion serveur wifi - par Padawan34 - 09-06-2024, 07:53 PM
RE: PB connexion serveur wifi - par Gilou31620 - 10-06-2024, 12:11 AM
RE: PB connexion serveur wifi - par F1ATB - 10-06-2024, 08:55 AM
RE: PB connexion serveur wifi - par Gilou31620 - 11-06-2024, 03:32 PM
RE: PB connexion serveur wifi - par F1ATB - 11-06-2024, 05:52 PM
RE: PB connexion serveur wifi - par Gilou31620 - 12-06-2024, 08:19 AM
RE: PB connexion serveur wifi - par Gilou31620 - 14-06-2024, 02:26 PM

Atteindre :


Utilisateur(s) parcourant ce sujet : 4 visiteur(s)