LCD void setup() error

I get this error on my void setup()
avre[0m 1.8.6 e[90m/home/tcad/.arduino15/packages/arduino/hardware/avr/1.8.6e[0m

#include <LiquidCrystal.h>
//henter inn liquidcrystal library
int seconds = 0;//setter sekund telleren til 0 sekunder ved start
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);//hvilke pins som blir brukt
byte ball[8] = {
  B00000,
  B00100,
  B01110,
  B11111,
  B11111,
  B01110,
  B00100,
  B00000,
}


void setup(){
  lcd.begin(16, 2); //velger antall rader og rekker som skal brukes.
  lcd.print("break my screen!");// sender en tekst som kommer opp på displayet
  lcd.creatChar(7, ball);
}

void loop()
{
  // (note: linje 1 er 2. raden på displayet altså øverste er 0 g nederste er 1
  lcd.setCursor(6, 1); // velger at sekundene skal telles i rute 6 i linjen under 
  lcd.print(seconds);  // viser sekunder som har gått på displayet
  delay(1000); // venter 1 sekund
  seconds += 1;//sekundene blir + 1
  for( int i=0; i<=15; i++){
    lcd.setCursor(i, 0);
    lcd.write(7);
    delay(1000);
    lcd.clear();
  }
}

and here is my circuit

What error? Please post the complete set of errors, using code tags.

Is there a function with that name in the library?

i dont know how but i fixed it. been stuck on this error for the last 4 hours :open_mouth:

1 Like

Maybe you saw my post, corrected that function name and then forgot about it.

no.

Ah, so you are telling us there is in fact a function called lcd.creatChar() in the library but there was some other problem in your code, which you fixed? Thanks, I didn't know about that function.

1 Like

So you magically fixed it?

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.