Raspberry PI RTC Clock
This project is meant to drive 2 2 digit 7-segment displays to create a fully functional clock that you can use in your room or study place.
More details and further code changes can be found on github: https://github.com/Sani7/RTC-Clock
The raspberry PI get's the time from the internet afther that it decodes it in to a useable number for each digit.
For a connection diagram please use the schematic below.
There are 3 main functions:
- SetDigits: This function gets a number from 0-9 and if the Decimal Point needs to be on or off and does this to the correct pins
- DisplayDigits: gets a number from 0-9 and if the Decimal Point needs to be on or off and gives it to the SetDigits function and the number of the segment that needs to light up
- GetTimeToDigits: This function decodes the time from the datetime function to useable numbers like segment 1: 1, segment 2: 0, segment 3: 2, segment 4: 2 and the leds need to be on.