Page 1 of 1

LCD Skin

Posted: Tue Jun 24, 2014 11:15 pm
by CarlC
Hi,

New to the forum but I received my pyBoard and all the associated bits and bobs. I have the board working and I have the LCD Skin working and all is well.

So my questions:

1, Are there any docs on the AMP skin yet?
2, Does anyone know the syntax and usage of pyb.LCD.command? It seems to take 2 arguements and I think they are both int but was hoping there are some notes somewhere. I am hoping there are some positional commands for the cursor in there.

Thanks and am loving the board :)

Carl

Re: LCD Skin

Posted: Wed Jun 25, 2014 12:58 pm
by JonHylands

Re: LCD Skin

Posted: Mon Oct 20, 2014 1:26 pm
by mbirth
On page 7 of the LCD specs (or page 50 of the controller specs) you will find e.g. this line:
(9) Display normal/reverse | 0 1 0 | 1 0 1 0 0 1 1 0/1 | Sets the LCD display normal/reverse, 0: normal, 1: reverse
So to set it to reverse, convert 10100111 to hex (A7) and then use:

Code: Select all

lcd.command(0, 0xa7)
Image

To set it back to normal, this will do:

Code: Select all

lcd.command(0, 0xa6)
Image

Note that the contents will stay. Even a lcd.show() will show the new contents reversed until you set it to normal again.