1
00:00:00,690 --> 00:00:02,780
Hi, welcome back in this lecture.

2
00:00:02,820 --> 00:00:11,880
I'll show you how to use this -- nine six inch or ality display with the SSD one three one five controller,

3
00:00:12,210 --> 00:00:19,320
which I happen to have implemented as a seed studio growth component.

4
00:00:20,310 --> 00:00:24,270
You can see its markings here is probably the only way you display that.

5
00:00:24,270 --> 00:00:29,940
I have with a marking of its controller on the board itself makes it very easy to identify.

6
00:00:30,420 --> 00:00:37,410
So since this is a growth component to a growth cable and then a bunch of jumper wires to connect it

7
00:00:37,410 --> 00:00:47,110
to the E.S.P 32, which is going to use these little pin to attach it back into my breadboard, which

8
00:00:47,110 --> 00:00:47,760
states put.

9
00:00:48,910 --> 00:00:49,280
Right.

10
00:00:49,630 --> 00:00:54,620
So I use the exact same pin I sent wiring's as in the previous lecture.

11
00:00:55,000 --> 00:00:58,960
This is a three point three volt display.

12
00:00:58,980 --> 00:01:03,160
So the efficiency is connected to the three point three volt railing.

13
00:01:03,610 --> 00:01:08,830
Then for Star, as you can see here as well, in the information they provided, the head of the sample

14
00:01:08,830 --> 00:01:16,440
script, FDA, is connected to Tiberio, 25, and S.L to appear 26.

15
00:01:17,140 --> 00:01:27,250
Now, similarly to this display here, the 096 OLED display with the it is the one three zero six controller.

16
00:01:27,610 --> 00:01:35,260
I'm using the exact same driver Python script, and just like with this display here, they will looked

17
00:01:35,260 --> 00:01:36,290
at a previous lecture.

18
00:01:36,520 --> 00:01:42,640
I have only been able to make use of the software I took, which interface I have been able to use the

19
00:01:42,640 --> 00:01:50,380
hardware interface, even though the approach that I am using are Channel one or I one.

20
00:01:50,770 --> 00:01:59,620
As per the documentation here you can see I could see ID one uses CEO twenty five and a twenty six,

21
00:02:00,010 --> 00:02:03,490
which are the pins that I'm using in this example.

22
00:02:04,210 --> 00:02:12,500
Hardware hwc has failed, but my backup which is software has worked, so I'm going along with that.

23
00:02:13,300 --> 00:02:16,480
So here's my example script.

24
00:02:16,480 --> 00:02:23,050
I'm importing the various modules that are necessary, including the sixty one three zero six and here

25
00:02:23,050 --> 00:02:30,490
I'm using software I squared seal it you see in the constructor to create the squared C object.

26
00:02:31,150 --> 00:02:38,380
These are the dimensions of this display and I'll create the OLED object by calling the edges the one

27
00:02:38,380 --> 00:02:46,240
three zero six and the call it squared C constructor and passing through the parameters for the width,

28
00:02:46,240 --> 00:02:48,250
height and the squishy object.

29
00:02:48,640 --> 00:02:55,660
And then in a loop I go ahead and print a little bit of text here and then call the show function to

30
00:02:55,660 --> 00:03:01,180
bring the content of the screen from the buffer and draw it onto the actual physical screen.

31
00:03:01,720 --> 00:03:12,670
I can use feel one zero zero here to invert the screen from blank or pixels of two or pixels on.

32
00:03:13,510 --> 00:03:16,330
And I can use here a line.

33
00:03:17,990 --> 00:03:25,040
To draw a single line from two arbitrary picks or positions using one is the carrot up the line so the

34
00:03:25,040 --> 00:03:31,390
pixels are turned on and you can use the same primitives as you already know from previous lectures.

35
00:03:31,400 --> 00:03:39,770
So there's fill this pixel scroll text, horizontal line, vertical line and so on.

36
00:03:41,070 --> 00:03:42,340
And that's about it.

37
00:03:42,480 --> 00:03:51,300
The script is already running in a loop and gives you a text screen to the end of the line, in fact,

38
00:03:51,510 --> 00:03:51,740
to.
