How to use ht1632.h library?

I am working with MAX7219 8x8 single-color matrix. Ofcourse I am using LedControl.h library. And I got one little issue: I saw one guy on the internet doing the same project, but with bi-color 8x8 led matrix... So he is using ht1632.h library(it's almost the same like mine). And I can't find an appropriate guide how ht1632 library is working?

So I got some code lines from ht1632 project:

dotmatrix.line(4, 15, 8, 7, GREEN); // I don't understand what those digits in brackets mean
dotmatrix.line(4, 15, 8, 7, BLACK); 
dotmatrix.line(4, 15, 8, 7, ORANGE);
dotmatrix.line(4, 15, 8, 7, RED);
dotmatrix.plot(4, 15, GREEN);

It almost looks like LedControl.h library coding:

lc.setLed(0, 0, 0, true); // Explanation: lc.setLed(display number, row number, col number, true/false(light or not))
lc.setRow(0, 0, array[num]); // Explanation: lc.setRow(display number, row number, byte array)

lc.setCol(0, 0, array[num]); // This is the same thing, but it's made to set column

I understand how to convert colors from ht1632 to LedControl, for example: BLACK = false; GREEN = true. But the main thing is to find out what those digits in brackets truly mean.

Thank you for your help.

Can you post a link to the HT1632 project and that other library?


LedControl.h library(Arduino Playground - LedControl) is everywhere in internet, but my code based on this library is made by my self, so I don't think that it will be helpful.

I just only want to know what digits in ht1632 library coding means. I am not asking you to made the code for me :slight_smile:

This is the prototype for the 'line()' function:-void line(int x0, int y0, int x1, int y1, byte color);So my guess would be that x0, y0 are the co-ordinates of the beginning of the line, and x1, y1 are the co-ordinates of the end of the line. ('color' is the colour of the line. :smiley: )

This is 'plot()':-void ht1632c::plot (byte x, byte y, byte color);It's probably safe to assume that this will light an individual LED, with x and y being the co-ordinates.

Any other ideas, how to convert ht1632 to LedControl?

Still waiting for ideas :slight_smile: can't find the solution by myself...

You might want to take a look at this old thread. AFAIK, it's the origin of most of the HT1632 libraries; lots of discussion and multiple contributors...