* This method will display the characters for the word "Arduino" one after the other on digit 0. * Set the brightness to a medium values */ * The MAX72XX is in power-saving mode on startup, we have to do a wakeup call */ * we always wait a bit between updates of the display */ unsigned long delaytime=250 ***** These pin numbers will probably not work with your hardware ***** pin 12 is connected to the DataIn pin 13 is connected to the CLK pin 10 is connected to LOAD We have only a single MAX72XX. Using either a serial, I 2 C, or SPI interface, you can control all digits, decimal points, the colon, and the apostrophe. Instead of using up a dozen-or-so of your microcontroller's pins to control the LEDs, all you need is one. We always have to include the library #include "LedControl.h" /* Now we need a LedControl to work with. The Serial 7-Segment Display is an easy-to-use 4-digit display that is controlled using a serial interface.
0 Comments
Leave a Reply. |