fork download
  1. #include <LiquidCrystal.h>
  2.  
  3. LiquidCrystal lcd(12, 11, 10, 9, 8, 7); // SainSmart LCD Keypad Shield
  4.  
  5. void setup() {
  6. lcd.clear();
  7. lcd.print(F("Moving Bar -> "));
  8. lcd.write(uint8_t('\1'));
  9. }
  10.  
  11. void loop(){
  12.  
  13. static unsigned char uc;
  14. if (uc == 0){
  15. uc = 1;
  16. }else{
  17. uc <<= 1;
  18. }
  19.  
  20.  
  21. static byte customChar[8] = {0};
  22. for (uint8_t i = 0; i < 8; i++){
  23. customChar[i] = uc;
  24. }
  25.  
  26. lcd.createChar(1, customChar);
  27.  
  28. delay(250);
  29. }
  30.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:27: fatal error: LiquidCrystal.h: No such file or directory
compilation terminated.
stdout
Standard output is empty