TM1650 Arduino library for 2 x 8 led display

Thread Starter

StealthRT

Joined Mar 20, 2009
303
Hey all I am using a 2 digit 8 segment TM1650 Arduino library and I can't seem to find the setting for that? I can only find TM1650_DISPMODE_4x8 and TM1650_DISPMODE_4x7. No 2x8.

My setup looks like this when running the code below:
enter image description here







My Arduino nano code:
C++:
#include <TM1650.h>
#include <TM16xxDisplay.h>

//              [data Pin]
//              |  [clock Pin]
//              |  |  [num Digits]
//              |  |  |  [activate Display]
//              |  |  |  |     [intensity]
//              |  |  |  |     |  [display mode]
//              ↓  ↓  ↓  ↓     ↓  ↓
TM1650 display1(2, 3, 2, true, 7   );

void setup()
{
}

void loop()
{
   int n;

   for (n = 0; n < 10; n++)
   {
      //                             [nNumber]
      //                             |  [byte bDots]
      //                             ↓  ↓
      display1.setDisplayToDecNumber(n, 0b0000);
      delay(250);                              
   }
}
If someone could let me know how to go about modifying the code in order to allow me to use just 2 digitals instead of 4 then that would be great!
 
Last edited:
Top