Multi-dimensional arrays may sound scary if you have never used one, however if you are familiar with basic arrays already then you can think of them simply as an array of arrays. One easy solution is to use something called a truth table, to store our truth table we will need to create a multi-dimensional array. That’s it, pretty simple right! Now how can we do this pragmatically? It’s pretty obvious when you look at the diagram above where the name came from, any digit 0-9 can be shown by activating the right combination of 7 segments. Lets start by looking at why they call it a 7-segment display. Luckily this display is a lot more capable than the vacuum fluorescent and 7-segment displays of the past, we should be able to overcome this dilemma with some simple code.įirst things first before we can write any code, we first have to understand the basic operation of a 7-segment display. The only problem, I was using a 128×64 OLED driven by a SSD1306 driver. I had a project come up recently where I needed to display some numbers that looked like an old 7-segment display.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |