Skip to content
Permalink
3675b96990
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (15 sloc) 406 Bytes
#include <Arduino.h>
long randNumber;
void setup() {
Serial.begin(9600);
pinMode(D4, OUTPUT); // NodeMCU: D4, Lolin32: LED_BUILTIN
randomSeed(analogRead(0));
}
void loop() {
randNumber = random(10, 20);
Serial.println(randNumber);
digitalWrite(D4, HIGH); // remember to change this for Lolin32
delay(1000);
digitalWrite(D4, LOW); // remember to change this for Lolin32
delay(1000);
}