hi, I Found a simple code to control a max7219 led array, I have uploaded the library and included it in the code however the instruction to "printByte(one)" comes up with the following error message
Arduino: 1.8.7 (Windows 10), Board: "Arduino/Genuino Uno"
Build options changed, rebuilding all
C:\Users\sjpai\OneDrive\Documents\Arduino\led_array\led_array.ino: In function 'void loop()':
led_array:24:14: error: 'printByte' was not declared in this scope
printByte(one);
^
exit status 1
'printByte' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
This is my code
#include <LedControl.h>
int DIN = 12;
int CS = 11;
int CLK = 10;
byte one[8] = {0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,};
LedControl lc=LedControl (DIN,CLK,CS,0);
void setup() {
// put your setup code here, to run once:
lc.shutdown(0,false);
lc.setIntensity (0,15);
lc.clearDisplay(0);
}
void loop() {
// put your main code here, to run repeatedly:
printByte(one);
}
do I need another library, an update to my uno, or somthing else?