Skip to content

Commit

Permalink
Updated and Specified SSD Part 1
Browse files Browse the repository at this point in the history
- Updated the description for the test program to match the result
- Specified that the 1000 is in hexadecimal, not in decimal.
  • Loading branch information
Sclatch committed Mar 14, 2024
1 parent 66b7632 commit a7d5efd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/content/lab/ssdisplay1/index.md
Expand Up @@ -90,7 +90,7 @@ First we are going to connect the four-digit seven-segment display to the GPIO p

## Testing connections

Let's run the provided test program, which shows the current time on the 7 segment display, to be sure it is working properly.
Let's run the provided test program, which shows a text and a scrolling text on the 7 segment display, to be sure it is working properly.

{{< highlight bash >}}
python3 examples/ht16k33_segments_7x4customchars.py
Expand Down Expand Up @@ -163,9 +163,9 @@ display.colon = False
Write a program that does the following:

* Write a function `writeDec` which outputs a decimal value.
* Count from 0000 to 1000, in decimal, with no delay
* Count from 0000 to 1000 in decimal, with no delay
* Write a function `writeHex` which outputs a hexadecimal value.
* Count from 0000 to 1000, in hexadecimal, with no delay
* Count from 0000 to 1000 in hexadecimal (which is 4096 in decimal), with no delay

{{< message >}}
You can use // and % to extract a single digit from a number. The following code demonstrates how to retrieve the $i$-th number (counted from 0, starting on the right) of the number in num:
Expand Down

0 comments on commit a7d5efd

Please sign in to comment.