Advertisement
hwthinker

Untitled

Aug 6th, 2019
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // pastikan opsi tools-> flash mode pilih menjdi DIO,Qout atau Dout. Jangan Pilih QIO.
  2. //the setup function runs once when you press reset or power the board
  3. int LED_BUILTIN=2;
  4. void setup() {
  5.   // initialize digital pin LED_BUILTIN as an output.
  6.   pinMode(LED_BUILTIN, OUTPUT);
  7. }
  8.  
  9. // the loop function runs over and over again forever
  10. void loop() {
  11.   digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  12.   delay(1000);                       // wait for a second
  13.   digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  14.   delay(1000);                       // wait for a second
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement