Skip to content

Instantly share code, notes, and snippets.

@jsleeio
Created July 15, 2013 14:42
Show Gist options
  • Save jsleeio/6000498 to your computer and use it in GitHub Desktop.
Save jsleeio/6000498 to your computer and use it in GitHub Desktop.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
void setup() {
lcd.begin(16,2);
}
void loop() {
int n = random(1,16);
lcd.clear();
while (n-- >= 0)
lcd.write('#');
delay(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment