![]() Digits to display, from right to left.Īrduino library. Here is the program: const int NB_DIGITS = 4 // 4-digit displayĬonst int FIRST_ANODE = 2 // anodes a.g on pins 2.8Ĭonst int FIRST_CATHODE = 9 // cathodes, right to left, on pins 9.12 Using the technique described in the Blink Without It should be noted that the waiting is done without blocking the CPU, by ![]() ![]() wait for 2.5 ms (for a refresh rate of 100 Hz).set HIGH the output that controls that digit's cathode through the.drive the 7 anodes with the appropriate signals for one of the digits.The refresh_display() function, which should be called periodically. This is actually a common cathode display, so the program assumes that,Īs well as the particular wiring of the figure. How to drive the 7-segment 4-digit display of his figure: Just as a complement to Paul's answer, I wrote a short program to show ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |