LCD Skin

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
CarlC
Posts: 1
Joined: Tue Jun 24, 2014 9:14 pm

LCD Skin

Post by CarlC » Tue Jun 24, 2014 11:15 pm

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

User avatar
JonHylands
Posts: 69
Joined: Sun Dec 29, 2013 1:33 am

Re: LCD Skin

Post by JonHylands » Wed Jun 25, 2014 12:58 pm


User avatar
mbirth
Posts: 25
Joined: Mon Oct 20, 2014 1:00 pm
Location: Berlin, Germany
Contact:

Re: LCD Skin

Post by mbirth » Mon Oct 20, 2014 1:26 pm

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.
pyBoard v1.0 + LCD32MKv1.0 | WiPy + Expansion Board | GitHub

Post Reply