For our first Space Invaders project, we're going to keep things very simple. This project will simply initialize the framebuffer and write a single dot to the LED Matrix (we'll consider this our spaceship for now). While none of this is new, it will allow us to verify that the LED Matrix is working properly and will get some of our initialization code out of the way.
Here's what our initialization code should look like for the framebuffer:
And here's what our code to write a single dot spaceship to the LED Matrix should look like:
If you run the program at this point, you should see a dot on the LED Matrix at x = 3 and y = 0.
Here is the full code for our game at this point: