Hello again Everyone.
This week we continued to play with the Sense HAT and as we’ve been mostly focusing on projects so far this year we took the opportunity to look at some of the theory behind programming.
We looked at how we use variables, loops and decisions in our programs and we also learned about algorithms. An algorithm is a set of rules we can use to solve a problem for example an algorithm to determine if a given year is a leap year. A year is a leap year if it is divisible by four, but not by one hundred, unless it is divisible by four hundred.
We then worked on a program which would allow us to “move” an LED around the LED matrix on the Sense HAT. You can run our code on the trinket.io Sense HAT emulator.
Dave will lead the group next week when he will cover some basic electronics.
Declan, Dave and Alaidh.