// max7219.h implementation in max7219.c // Francesco Fontana 03/05/2020 #include <8051.h> #ifndef uChar #define uChar unsigned char #endif //Wires connected to ArduOne, you can change here: #define DATA P1_0 #define CLOCK P1_1 #define CS P1_2 // Send command or data to max7219 void writeWord(uChar command, uChar bdata); // Initialize the display extern void initMax7219(); // Clears the display void clearMax7219(); // Set the level of brightness (0 to 15) void setBrightnessMax7219(uChar); // Needed by for printf int putchar(int);