Error compliling for board Arduino/Genuino Uno

New laptop win 10. Arduino 1.6.8 I check to make sure all settings in tools is set. LedControl is in the libraries I use another program for the same board with LedControl and it works just fine..

[code]
#include "LdControl.h"
LedControl lc=LedControl(12,11,10,0);

void setup() {
  // put your setup code here, to run once:
lc.shutdown(0,false);
lc.setIntensity(0,10);
lc.clearDisplay(0);
}

void loop() {
  // put your main code here, to run repeatedly:
lc.setDigit(0,0,4,true);
lc.setDigit(0,1,4,true);
lc.setDigit(0,2,2,true);
lc.setDigit(0,3,1,true);
lc.setDigit(0,4,7,true);
delay(1000)

}

[/code]

Naneen:
New laptop win 10.

Oh dear oh dear!

Oh dear oh dear!

It was a gift from my granddaughter. she was tired of my bleeding screen. Cat knock laptop off table.

We have a solution for Windoze 10. It's called Linux Mint. :grinning:

#include "LdControl.h"

If i learn to spell it would help.

LedControl

So it all works now?

HI Paul__B The answer is no. it behaves in ways that I don't understand. Attach is a picture of the 8x8 matrix and code.

#include "LedControl.h"
LedControl lc = LedControl(12, 11, 10, 1);

void setup() {
  // put your setup code here, to run once:
  lc.shutdown(0, false);
  lc.setIntensity(0, 5);
  lc.clearDisplay(0);
}

void loop() {
  // put your main code here, to run repeatedly:
  lc.setDigit(0, 0, 0, false);
 
  delay(1000);

}

What I would like to be able to do is turn on one LED at a time. I have a project which would require about 700 to 800 LEDs. I would like to see these light up 1 at a time in sequence for now. Later I will add tricolor LEDs. But for now white LEDs will do. I can light up two sets of eight LEDs using MAX7219. The program that i am currently using uses SPI programming. I don't know how to add more MAX7219 with SPI. I do with LedControl. I still don't understand whitch pin is turn on by what command, while I can light up LEDs i don't understand why. Attach is another sketch that I am experimenting with.

[code]
#include <SPI.h>const

const byte MAX7219_REG_NOOP        = 0x0;
// codes 1 to 8 are digit positions 1 to 8
const byte MAX7219_REG_DECODEMODE  = 0x9;
const byte MAX7219_REG_INTENSITY   = 0xA;
const byte MAX7219_REG_SCANLIMIT   = 0xB;
const byte MAX7219_REG_SHUTDOWN    = 0xC;
const byte MAX7219_REG_DISPLAYTEST = 0xF;

int B = 1000;
void sendByte (const byte reg, const byte data)
{
  digitalWrite (SS, LOW);
  SPI.transfer (reg);
  SPI.transfer (data);
  digitalWrite (SS, HIGH);
}  // end of sendByte

void setup ()
{
  SPI.begin ();
  sendByte (MAX7219_REG_SCANLIMIT, 3);      // show 4 digits
  sendByte (MAX7219_REG_DECODEMODE, 0x0);  // use digits (not bit patterns)
  sendByte (MAX7219_REG_DISPLAYTEST, 0);    // no display test
  sendByte (MAX7219_REG_INTENSITY, 8);      // character intensity: range: 0 to 15
  sendByte (MAX7219_REG_SHUTDOWN, 1);       // not in shutdown mode (ie. start it up)
  Serial.begin(9600);
}   // end of setup']


void loop ()
{
  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 0);
  Serial.print("1,0 ");
  Serial.print("2,0 ");
  Serial.print("3,0 ");
  Serial.println("4,0 ");
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 64);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 96);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 112);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 120);
  delay (B);


  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 124);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 126);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 127);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 0);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 64);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 96);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 112);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 120);
  sendByte (4, 255);
  delay (B);


  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 124);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 126);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 127);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 0);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 64);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 96);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 112);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 120);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);


  sendByte (1, 0);
  sendByte (2, 124);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 126);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 127);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 0);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 64);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 96);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 112);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 120);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);


  sendByte (1, 124);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 126);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 127);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

  sendByte (1, 255);
  sendByte (2, 255);
  sendByte (3, 255);
  sendByte (4, 255);
  delay (B);

}

[/code]

How do you know which pin you are turning on, as you can see in the sketch I figured out how to turn on each segment, What is the sufficient of the numbers 64, 96, 112, etc.

After that write up about not understanding. I went back to the article on MAX7219 reread and this time something soaked in. I rewrote my sketch with LedControl and i was able to control individual LEDs Hurray.

[code]

#include "LedControl.h"
LedControl lc = LedControl(12, 11, 10, 0);

void setup() {
  // put your setup code here, to run once:
  lc.shutdown(0, false);
  lc.setIntensity(0, 3);
  lc.clearDisplay(0);
}

void loop() {
  // put your main code here, to run repeatedly:
  lc.setLed(0, 0, 0, false);
  lc.setLed(0, 1, 0, false);
  lc.setLed(0, 2, 0, false);
  lc.setLed(0, 3, 0, false);
  lc.setLed(0, 4, 0, false);
  lc.setLed(0, 5, 0, false);
  lc.setLed(0, 6, 0, false);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, false);
  lc.setLed(0, 2, 0, false);
  lc.setLed(0, 3, 0, false);
  lc.setLed(0, 4, 0, false);
  lc.setLed(0, 5, 0, false);
  lc.setLed(0, 6, 0, false);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, true);
  lc.setLed(0, 2, 0, false);
  lc.setLed(0, 3, 0, false);
  lc.setLed(0, 4, 0, false);
  lc.setLed(0, 5, 0, false);
  lc.setLed(0, 6, 0, false);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, true);
  lc.setLed(0, 2, 0, true);
  lc.setLed(0, 3, 0, false);
  lc.setLed(0, 4, 0, false);
  lc.setLed(0, 5, 0, false);
  lc.setLed(0, 6, 0, false);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, true);
  lc.setLed(0, 2, 0, true);
  lc.setLed(0, 3, 0, true);
  lc.setLed(0, 4, 0, false);
  lc.setLed(0, 5, 0, false);
  lc.setLed(0, 6, 0, false);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, true);
  lc.setLed(0, 2, 0, true);
  lc.setLed(0, 3, 0, true);
  lc.setLed(0, 4, 0, true);
  lc.setLed(0, 5, 0, false);
  lc.setLed(0, 6, 0, false);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, true);
  lc.setLed(0, 2, 0, true);
  lc.setLed(0, 3, 0, true);
  lc.setLed(0, 4, 0, true);
  lc.setLed(0, 5, 0, true);
  lc.setLed(0, 6, 0, false);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, true);
  lc.setLed(0, 2, 0, true);
  lc.setLed(0, 3, 0, true);
  lc.setLed(0, 4, 0, true);
  lc.setLed(0, 5, 0, true);
  lc.setLed(0, 6, 0, true);
  lc.setLed(0, 7, 0, false);
  delay(1000);
  lc.setLed(0, 0, 0, true);
  lc.setLed(0, 1, 0, true);
  lc.setLed(0, 2, 0, true);
  lc.setLed(0, 3, 0, true);
  lc.setLed(0, 4, 0, true);
  lc.setLed(0, 5, 0, true);
  lc.setLed(0, 6, 0, true);
  lc.setLed(0, 7, 0, true);
  delay(1000);
// Second column//
  lc.setLed(0, 0, 1, false);
  lc.setLed(0, 1, 1, false);
  lc.setLed(0, 2, 1, false);
  lc.setLed(0, 3, 1, false);
  lc.setLed(0, 4, 1, false);
  lc.setLed(0, 5, 1, false);
  lc.setLed(0, 6, 1, false);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, false);
  lc.setLed(0, 2, 1, false);
  lc.setLed(0, 3, 1, false);
  lc.setLed(0, 4, 1, false);
  lc.setLed(0, 5, 1, false);
  lc.setLed(0, 6, 1, false);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, true);
  lc.setLed(0, 2, 1, false);
  lc.setLed(0, 3, 1, false);
  lc.setLed(0, 4, 1, false);
  lc.setLed(0, 5, 1, false);
  lc.setLed(0, 6, 1, false);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, true);
  lc.setLed(0, 2, 1, true);
  lc.setLed(0, 3, 1, false);
  lc.setLed(0, 4, 1, false);
  lc.setLed(0, 5, 1, false);
  lc.setLed(0, 6, 1, false);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, true);
  lc.setLed(0, 2, 1, true);
  lc.setLed(0, 3, 1, true);
  lc.setLed(0, 4, 1, false);
  lc.setLed(0, 5, 1, false);
  lc.setLed(0, 6, 1, false);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, true);
  lc.setLed(0, 2, 1, true);
  lc.setLed(0, 3, 1, true);
  lc.setLed(0, 4, 1, true);
  lc.setLed(0, 5, 1, false);
  lc.setLed(0, 6, 1, false);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, true);
  lc.setLed(0, 2, 1, true);
  lc.setLed(0, 3, 1, true);
  lc.setLed(0, 4, 1, true);
  lc.setLed(0, 5, 1, true);
  lc.setLed(0, 6, 1, false);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, true);
  lc.setLed(0, 2, 1, true);
  lc.setLed(0, 3, 1, true);
  lc.setLed(0, 4, 1, true);
  lc.setLed(0, 5, 1, true);
  lc.setLed(0, 6, 1, true);
  lc.setLed(0, 7, 1, false);
  delay(1000);
  lc.setLed(0, 0, 1, true);
  lc.setLed(0, 1, 1, true);
  lc.setLed(0, 2, 1, true);
  lc.setLed(0, 3, 1, true);
  lc.setLed(0, 4, 1, true);
  lc.setLed(0, 5, 1, true);
  lc.setLed(0, 6, 1, true);
  lc.setLed(0, 7, 1, true);
  delay(1000);
}

[/code]

I know there are better ways to count. I will work on that part next now that i have this part figured out.
Thanks to all who have help me to get to this point.