Programming LED 16x16 Arduino uno

Hello guys, we're two schoolmate from France (sorry for my bad english) and we are looking for somebody who can help us for programming differents numbers (0, 15, 30 and 40 > tennis scores) on a led display 16x16 with a Arduino Uno .. can somebody help us or propose a simple program ?

Thank you

The answer would depend on the display you buy.

This is a picture of the display

theblap13:

This is a picture of the display

A photograph of a display is a useless answer when you are trying to program it.

So where is the datasheet that you were provided when you purchased the display? Was it on a Web site, if so give the link?

Buying an electronic component without the datasheet is like buying a safe without the keys.

Which informations do you need ? I'm sorry if I don't answer perfectly at your questions

Precisely what I specified.

There must be a datasheet - a document which specifies how you operate the display. Whoever sold it to you should have provided that at the time. Did you buy it from the Web? If so, what is the Web link to the seller and this product in particular?

You need to request the datasheet from the vendor if it was not supplied.

What do you want to know about the datasheet ? I can tell you about the pixels
For this display, I don't see any datasheet

theblap13:
For this display, I don't see any datasheet

Well then, neither do we.

The case is closed. :grinning:

theblap13:
This is a picture of the display

Do you have a working demo sketch for the matrix? Post it using code tags.
Also post some close-up well-lit and focussed pictures of the back of the matrix, so that all labels etc can be read.

I have found a program who works on my display, if it can help you ..

#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library

// Similar to F(), but for PROGMEM string pointers rather than literals
#define F2(progmem_ptr) (const __FlashStringHelper *)progmem_ptr

#define CLK 8 // MUST be on PORTB! (Use pin 11 on Mega)
#define LAT A3
#define OE 9
#define A A0
#define B A1
#define C A2
// Last parameter = 'true' enables double-buffering, for flicker-free,
// buttery smooth animation. Note that NOTHING WILL SHOW ON THE DISPLAY
// until the first call to swapBuffers(). This is normal.
RGBmatrixPanel matrix(A, B, C, CLK, LAT, OE, true);
// Double-buffered mode consumes nearly all the RAM available on the
// Arduino Uno -- only a handful of free bytes remain. Even the
// following string needs to go in PROGMEM:

const char str[] PROGMEM = "Adafruit 16x32 RGB LED Matrix";
int textX = matrix.width(),
textMin = sizeof(str) * -12,
hue = 0;
int8_t ball[3][4] = {
{ 3, 0, 1, 1 }, // Initial X,Y pos & velocity for 3 bouncy balls
{ 17, 15, 1, -1 },
{ 27, 4, -1, 1 }
};
static const uint16_t PROGMEM ballcolor[3] = {
0x0080, // Green=1
0x0002, // Blue=1
0x1000 // Red=1
};

void setup() {
matrix.begin();
matrix.setTextWrap(false); // Allow text to run off right edge
matrix.setTextSize(2);
}

void loop() {
byte i;

// Clear background
matrix.fillScreen(0);

// Bounce three balls around
for(i=0; i<3; i++) {
// Draw 'ball'
matrix.fillCircle(ball[0], ball[1], 5, pgm_read_word(&ballcolor*));
_ // Update X, Y position*
ball[0] += ball*[2];
ball[1] += ball[3];
// Bounce off edges*

if((ball[0] == 0) || (ball*[0] == (matrix.width() - 1)))
ball[2] = -1;
if((ball[1] == 0) || (ball[1] == (matrix.height() - 1)))

ball[3] = -1;
}
// Draw big scrolly text on top*

* matrix.setTextColor(matrix.ColorHSV(hue, 255, 255, true));
matrix.setCursor(textX, 1);
matrix.print(F2(str));
// Move text left (w/wrap), increase hue*

* if((--textX) < textMin) textX = matrix.width();
hue += 7;
if(hue >= 1536) hue -= 1536;
// Update display*

* matrix.swapBuffers(false);
}*_

Yes, that should help but please edit your post above and put code tags around the sketch, as I asked you to do. It should look like

this

If you want help and someone asks you for something or to do something and you don't understand, please ask. Do not ignore the request.

So that sketch runs ok on your matrix? You have actually tested it? If so, the full details and data sheets will be available on the Adafruit website. This is the information Paul__B was asking for.

Okay I understand, sorry..

Yes this run on my matrix, where can I find these informations ?

theblap13:
Okay I understand, sorry..

You say you are sorry and you understand, but you have not done as i asked. Why? Can you not see that the sketch you posted has been corrupted? That happened because you did not use code tags.

ESL.

Paul__B:
ESL.

Yes, i am trying my best to avoid colloquialisms!

@theblap13 please forgive us if we say things that are difficult to understand. Pleaae do not feel embarrassed to ask us to re-phrase something.

include <Adafruit_GFX.h>   // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library

// Similar to F(), but for PROGMEM string pointers rather than literals
#define F2(progmem_ptr) (const __FlashStringHelper *)progmem_ptr

#define CLK 8  // MUST be on PORTB! (Use pin 11 on Mega)
#define LAT A3
#define OE  9
#define A   A0
#define B   A1
#define C   A2
// Last parameter = 'true' enables double-buffering, for flicker-free,
// buttery smooth animation.  Note that NOTHING WILL SHOW ON THE DISPLAY
// until the first call to swapBuffers().  This is normal.
RGBmatrixPanel matrix(A, B, C, CLK, LAT, OE, true);
// Double-buffered mode consumes nearly all the RAM available on the
// Arduino Uno -- only a handful of free bytes remain.  Even the
// following string needs to go in PROGMEM:

const char str[] PROGMEM = "Adafruit 16x32 RGB LED Matrix";
int    textX   = matrix.width(),
       textMin = sizeof(str) * -12,
       hue     = 0;
int8_t ball[3][4] = {
  {  3,  0,  1,  1 }, // Initial X,Y pos & velocity for 3 bouncy balls
  { 17, 15,  1, -1 },
  { 27,  4, -1,  1 }
};
static const uint16_t PROGMEM ballcolor[3] = {
  0x0080, // Green=1
  0x0002, // Blue=1
  0x1000  // Red=1
};

void setup() {
  matrix.begin();
  matrix.setTextWrap(false); // Allow text to run off right edge
  matrix.setTextSize(2);
}

void loop() {
  byte i;

  // Clear background
  matrix.fillScreen(0);

  // Bounce three balls around
  for(i=0; i<3; i++) {
    // Draw 'ball'
    matrix.fillCircle(ball
, ball[1], 5, pgm_read_word(&ballcolor));

    // Update X, Y position
    ball
+= ball[2];

    ball[1] += ball[3];
    // Bounce off edges
    if((ball
== 0) || (ball
== (matrix.width() - 1)))

      ball[2] *= -1;
    if((ball[1] == 0) || (ball[1] == (matrix.height() - 1)))
      ball[3] *= -1;
  }

  // Draw big scrolly text on top
  matrix.setTextColor(matrix.ColorHSV(hue, 255, 255, true));
  matrix.setCursor(textX, 1);
  matrix.print(F2(str));

  // Move text left (w/wrap), increase hue
  if((--textX) < textMin) textX = matrix.width();
  hue += 7;
  if(hue >= 1536) hue -= 1536;

  // Update display
  matrix.swapBuffers(false);
}

I think it's good, isn't it ? ahah

Thanks you for your patience

theblap13:
I think it's good, isn't it ? ahah

No, its still corrupt. Copy it again from the IDE.

IDE ?