mirror of
https://github.com/KevinMidboe/Arduino.git
synced 2025-10-29 17:40:11 +00:00
Init commit with many years of arduino sketches and projects. I dont know if the esp8266 includes much, but there are also libraries. I hope they dont have crazy automatic versioning through the Arduino IDE.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#include <Wire.h>
|
||||
#include <LiquidCrystal_I2C.h>
|
||||
|
||||
// Set the LCD address to 0x27 for a 16 chars and 2 line display
|
||||
LiquidCrystal_I2C lcd(0x27, 16, 2);
|
||||
|
||||
void setup()
|
||||
{
|
||||
// initialize the LCD
|
||||
lcd.begin();
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
bool blinking = true;
|
||||
lcd.cursor();
|
||||
|
||||
while (1) {
|
||||
if (blinking) {
|
||||
lcd.clear();
|
||||
lcd.print("No cursor blink");
|
||||
lcd.noBlink();
|
||||
blinking = false;
|
||||
} else {
|
||||
lcd.clear();
|
||||
lcd.print("Cursor blink");
|
||||
lcd.blink();
|
||||
blinking = true;
|
||||
}
|
||||
delay(4000);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user