Bonjour, j'ai un problème lors de la programmation de ma plaque arduino uno, voici ce quel'on me dit, est ce que quelqu'un pourrait m'aider s'il vous plait :
Le croquis utilise 2*604 octets (8%) de l'espace de stockage de programmes. Le maximum est de 32*256 octets.
Les variables globales utilisent 196 octets (9%) de mémoire dynamique, ce qui laisse 1*852 octets pour les variables locales. Le maximum est de 2*048 octets.
avrdude: ser_open(): can't open device "\\.\COM3": Le fichier spécifié est introuvable.
Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.
Et voici mon programme:
Code:const int SWITCH = 9; //pin for the MOSFET const int BUTTON = 7; //pin for the Button const int LED = 13; //pin for the LED int val = 0; //used to store state of input pin int old_val = 0; //used to store previous value of val int state = 0; //1 = LED off and 0 = LED on void setup() { // put your setup code here, to run once: pinMode(SWITCH, OUTPUT); //Map output to MOSFET pinMode(BUTTON, INPUT); //Map input to Button pinMode(LED, OUTPUT); //Map output to LED Serial.begin(300); //Initiate a data connection between the board and a computer } void loop() { // put your main code here, to run repeatedly: val = digitalRead(BUTTON); //Read input value of Button and store it //check for change in value if ((val == HIGH) && (old_val == LOW)) { state = 1 - state; delay(10); } old_val = val; //store the old value if (state == 1) { Serial.println("OFF"); //send off message back to the computer digitalWrite(SWITCH, LOW); //turn off flow of electricity to magnet digitalWrite(LED, LOW); //turn off LED } else { Serial.println("ON"); //send on message back to the computer digitalWrite(SWITCH, HIGH); //turn on flow of electricity to magnet digitalWrite(LED, HIGH); //turn on LED } Merci }
-----