In a previous lecture, he learned how to use the next seven to one nine displayed in its CINQUERA with
four displays configuration to display random pixels.
In this lecture, I'll show you how to display a bit of text, although you'll see the text display
capabilities are not that amazing and there are few limitations.
So the wiring, of course, hasn't changed exactly the same as the previous lecture.
So let's jump right into the software side here.
The software for the text demonstration is identical to that of the random ality demonstration, except
that down here we are using the text function to display just four letters at this position here, zero
zero.
So we start from the top of the display and then use color zero, which is unlet, which means that
the light is going to be turned off.
So then a bit earlier, right here in line 39, I'm using field, but this time I'm passing one to the
field function instead of zero that I did in the previous example.
It means that the field command, the field function is going to turn all of the latest on the display
on.
Therefore, by printing text with Callard zero, I'd be using black on white to print out the latest
ABCDE.
I've also said the brightness to five and by calling show and making those letters visible.
So I'm going to hit control, see on my keyboard to stop the random pixels example and then.
Start the text, there you go.
So the text looks like this one, it's black black text on white background and obviously this red background,
because of the color of the early days, has a dark on.
Right.
Can it do a couple of changes?
Let's see what capitals look like.
And then I'm going to change the field to zero and the color of the text to one right at that.
And it looks like this is interesting, that did not occur, it did not appear because I did not tight-fitting.
All right.
And of course, he can also display numbers.
So there's numbers that I mentioned earlier, there are some limitations with using text in with these
displays and with this particular library, for once, you can't change the size of the library.
It is the size that takes up the whole individual eight by eight display to display one single character
and another limitation that are found to be quite annoying is that you can't rotate your characters,
so you have to use your display in this vertical orientation can really go horizontally and have your
characters turned by 90 degrees in a horizontal way.
You can dig into the driver itself.
And if your python knowledge is good enough, you'll be able to make those changes in the code itself
and then have perhaps a rotation function that allows you to rotate by 90 degrees.
But without making modifications to the library itself, you can't at least I wasn't able to find a
library that can do this.
So if you can live with these limitations of this, Max, seven to one nine library, and especially
if you want to use it for displaying graphics, using the graphics primitives, I think it is a good
idea.
Tootles.