Like in the previous lecture, he learned how to use This is your boy six inch display, which based
on the SSD, one three or six controlled chip.
And in this lecture, I'll show you a slightly larger display again, eighty seven point three inch,
using the one one zero six controller chip.
I'm going to use the exact same connections between the screen and the three two.
I'm using the square to see interface, which involves the ACL and the pins going to JBoss 25 and 26.
Now, unlike our previous experiment with the SSD one three or six display, I was able to get this
display to work both with software I could see and hardware I quite see and of course, hardware see,
which is more efficient with resources.
So in this demonstration here, I'm using the hardware interface instead of the software interface.
Now, in terms of the driver Python Library that I'm using here, I found a really good one which is
available at this location right here.
And you can see its source code right here, really well documented up in the header.
This library allows you to use this screen both with the FBI or the squared C interface for the module
that I've got here, of course, only provides Pince for the ice Quixey interface, and that's how I'm
using it here.
But in a way, the library does allow you to use the same Oletta display with the as one one zero six
controller, you know, using the S.P.I connection if the more to the to using breaks out those pins.
Right.
We may come back to this source code in a minute.
Let's go back to the example script of code information about the connections right here.
You can go ahead and wire up your screen just to change this to software or hardware.
I could see because the both work fine.
Now, down here in the actual code, I'm importing the ice quazi and PIN modules as well as the driver
code.
And you can see that I'm creating the ice quazi object by using the minimal version of the constructor.
I'm just passing the idea of the hardware interface being No.
One just remind you could go to the macro python documentation.
You'll see that the eight squared C ID one channel means that a seal is connected to your twenty five
a.D.A, the GPO twenty six, which is how often the wiring here.
So that's all the code you need in order to create the ice.
Quixey object also mentioned that I have tried software.
It's Quassey and that works as well.
I've just committed out that code in case you want to use it.
It's a very flexible library.
Then in line forty one, we are creating the display object by calling the Hajj one one zero six and
the skylights could see constructor.
You can search for that constructor function in the source code and you'll take it to this and you can
see the initialization function and its parameters, the width to hide the object.
I'm not sure what this is, but I'm just going to go with the default of none.
And finally, you've got the address here, so you've got the display object here and then initialize
it.
And the contents lead to true if you want to minimize the power consumption.
But of course, make sure that the display is awake by passing falls to the sleep function, then we'll
start printing out some various test text or patterns.
In this case, turn the screen to black.
Surpassing zero means all the pixels are turned off.
Then I'm writing a bit of text here at this location.
This is X and Y.
You can see if you search for text, you can see the.
Come right here, this shackled to the frame buffer implementation of text function.
So you've got a bit of text pointing out and then we call show to bring this drawing out of the box
and implemented and show it onto the screen.
Go to sleep for a second, then fill the screen by turning all the lights on so that we light up the
whole screen, then I'm going to print out a bit of text.
But this time I'm going to print it in black and turn off its pixels.
You can also rotate the screen so that you can have the screen pointing upside down if you need, depending
on the orientation.
So this is something that the library for the SSD one three zero six in the previous lecture did not
provide us with such rotate function.
So we can flip things around and then we can print a rectangle.
And in this case here, I'm filling the screen by printing multiple rectangles.
Each one is larger than the previous until eventually fills the whole screen.
And then finally, I've got a little bit of an animation going on here, I've got a little box that
is travelling from the left end of the screen to the right and then back to the left, which is what
you can see happening right here.
The little box there is bouncing off the sides of the screen.
I'm going to get control, see?
To stop the program from running and then I'm going to start from the beginning so we can see what is
going on until we get see the bouncing ball segment.
You're testing one, two inverted, it's a box in the middle and then the full screen, the gradual
full screen.
And finally, the bouncing ball is an example of a simple animation.
Now this is happening using hardware.
It's quite easy so that it's an efficient way to drive this great.