Scroll and stop text on LCD

Hmm. I don't know. I have the sample program and it works without this initialization and I wanted modify this code. But maybe you're right and I should initialize these buttons button pins as inputs :slight_smile:

I also add

static int i = 0;
static int a = 0;

and then I have the whole display in "xxxxx"