Welcome back everyone, I know we've already gone over quite a few games.
The dice game and the message board, I guess that's not really a game but
the message board.
And now,
it's time to explore the possibilities of making a fun game on Android.
So yeah, we did all that on Ubuntu using Python.
But now we're gonna kind of take that same setup.
We manipulate it a little bit, but basically the same setup we had for
the other two games and make a little fun app here.
So first, I wanna kinda go over this circuit here.
So we can kinda get maybe a shot in here of this,
and we're gonna trace these wires here so that you can see what's going on.
I know it looks like a little bit of mess, but they are color coordinated so
you can pause the video maybe take some time, check it out.
I'll do my best right here.
So we have our amplifier circuit as you can see right here.
The same amplifier that you built not too long ago in one of the previous modules.
Well, what we're gonna do is we're gonna power up the amplifier circuit right here
with these two ones.
We just have the black and the red.
So this is the power and the ground going,
giving power to the amplifier to our little opp amps here.
Then that ground traces across here along with the power,
giving power to our LED block.
So all the red and the black wires, all that is is power and ground.
Then we're gonna be using three GPIOs to power this LED block this time.
The three GPIOs or the three pins we're gonna use are pins 24, pins 26 and pin 34.
So respectively pin 24 is going to your d in on your LED block and
you're going to get to see this a little bit more when Ari goes over the code.
But pin 24 is going to the yellow one right here, yellow trace it into
the input of the amplifier and then the output of the amplifier goes into the DN.
Then pin 26 is gonna be your CS, so 26 traces into the second
input of your second amplifier there out into your CS of your LED block.
And finally, the white wires here go from pin 34 into
the input of amplifier and then output over to your clock.
So you can check this out.
I recommend pausing.
You probably can't see much of what's going on here, but
hopefully my explanations did you well and
then along with the code you should be able to figure this out pretty easily.
So let's kind of check out the code now.
We'll dive into what's going on here.
Hey Ari, what do you think?
>> So if you guys recall from course two I believe module eight,
we went over how to make your own Floppy Bird game.
We called it Calli Bird.
So we're gonna be reusing that same exact code.
So if you haven't already watched it before and
you kinda wanna learn more about our thinking or
our methodology behind making the game, go ahead and check that out.
Let's go ahead and take a look at the build.gradle file which is gonna be for
our module app.