So now let's try the last lady we have what our board which is green and this one is connected to food
over here.
And this December the primary number for it.
So in order to use this we have to enable it.
And then we have to tell the on the microcontroller that this particular pin is an output pane.
So all we have to do is go to our GP.
I admit it subroutine to do this and we're looking for two registers here.
This first one here what we want is to change this.
Like this.
Yeah.
And this becomes an from E like this.
So that's the next value.
And basically what we've enabled are the um the blue green and red.
And the D an overhead digital enable you want to once enable this one that like this.
So this side becomes an all we have to do is change this to an F like this.
So let's try it and see if we can just cry by changing the color to green and let's compile a let's
download
a K or sex my bold.
There we go.
It's work in minus.
Perfect.
Congratulations.
So now we can just you know choose any color we want bar.
We have to type in in order to get this color.
I mean given the resources we have on our board I think it's rather too cumbersome to type.
Just to get a color.
So what we're going to do next is actually to use the switch to turn on another color and then to use
the combination of you know switch one into it to turn on another color or then we could you know we
could switch to it we could add some hot work to our board to turn on another color.
So what we're going to do now first of all would be to enable switch to give us another control.
So see you in the next lesson.