pidjieu dibril
Published

Blinking a led using vscode and arduino mkr1000

My first project is to use ide vs code and arduino mkr1000 to flash a led

BeginnerProtip207
Blinking a led using vscode and arduino mkr1000

Things used in this project

Hardware components

Arduino MKR WiFi 1010
Arduino MKR WiFi 1010
×1
Resistor 220 ohm
Resistor 220 ohm
×1
LED (generic)
LED (generic)
×1
cable usb 2.0
×1
Breadboard (generic)
Breadboard (generic)
×1

Story

Read more

Schematics

github link

assembly image

assembly diagram in tinkercard

Code

demo blink

C/C++
the goal is to use vscode and platformIo to flash a led
/*
  Titre      : demo blink
  Auteur     : Pidjieu dibril
  Date       : 05/01/2023
  Description: utilisation de vscode pour faire clignoter une led
  Version    : 0.0.1
*/

#include <Arduino.h>

const int ledPin = 10; // led sur la broche digital 8
const int TEMPO  = 5000; // LE DELAIt en miliseconde 
void setup() {
// put your setup code here, to run once:
// pinMode prend deux valeur la valeur de la broche et le mode de sortir de la broche
pinMode(ledPin, OUTPUT);  // mode sortir pour broche 
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledPin, HIGH);        //Broche placé en mode HAUT  (3.3V) HIGH pour positive de 3.3v 
delay(TEMPO);                       //delai 5 seconde
digitalWrite(ledPin, LOW);         //broche placé en mode BAS (0v) Low pour negatif de 0V
delay(TEMPO);                       // délai a 5 seconde 
}

Credits

pidjieu dibril
1 project • 1 follower
after getting my certificate as a python developer. I am currently studying internet of things at the ccnb
Contact

Comments

Please log in or sign up to comment.