aboutsummaryrefslogblamecommitdiff
path: root/rpi/max7219/max7219_test.c
blob: d01a32c81c4957d4294ef415efecfbf25fd4997b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                  
#include <unistd.h>
#include "max7219.h"
int main()
{
	max7219_init();
	for(int c=0;c<4;++c)
	{
		for(int cc=0;cc<4;++cc)
		for(int i=0;i<8;++i)
			max7219_send(i+1,c==cc?(1<<(i+1))-1:0,cc);
		sleep(2);
	}
	max7219_deinit(1);
	return 0;
}