Uploaded by itif Electrónica

EXPLICACONVERGIGER

advertisement
CUADRO H
#include <LiquidCrystal.h>
LiquidCrystal lcd(7,6,5,4,3,2);
byte fig1[8] = {
B11111,
B11111,
B11100,
B11100,
B11100,
B11100,
B11100,
B11100
};
byte fig2[8] = {
B11100,
B11100,
B11100,
B11100,
B11100,
B11100,
B11111,
B11111
};
byte fig3[8] = {
B11111,
B11111,
B00111,
B00111,
B00111,
B00111,
B00111,
B00111
};
byte fig4[8] = {
B00111,
B00111,
B00111,
B00111,
B00111,
B00111,
B11111,
B11111
};
void setup() {
lcd.createChar(1, fig1);
lcd.createChar(2, fig2);
lcd.createChar(3, fig3);
lcd.createChar(4, fig4);
lcd.begin(16, 2);
lcd.setCursor(0,0);
1
2
3
4
PANTALLAZ0
lcd.write(1);
delay(500);
lcd.setCursor(0,1);
lcd.write(2);
delay(500);
lcd.setCursor(1,0);
lcd.write(3);
delay(500);
lcd.setCursor(1,1);
lcd.write(4);
delay(500);
}
void loop() { }
CUADRO H
Download