HELLO, New arduino using esp8266 for P10 LED Display and its not working. here is the code and the result. what do you think is the main cause?

/*

  • Contoh penggunaan library DMDESP
  • email : bonny@grobak.net - www.grobak.net - www.elektronmart.com
    */

#include <DMDESP.h>
#include <fonts/ElektronMart6x8.h>
#include <fonts/Mono5x7.h>

//SETUP DMD
#define DISPLAYS_WIDE 1 // Kolom Panel
#define DISPLAYS_HIGH 1 // Baris Panel
DMDESP Disp(DISPLAYS_WIDE, DISPLAYS_HIGH); // Jumlah Panel P10 yang digunakan (KOLOM,BARIS)

//----------------------------------------------------------------------
// SETUP

void setup() {

// DMDESP Setup
Disp.start(); // Jalankan library DMDESP
Disp.setBrightness(50); // Tingkat kecerahan
Disp.setFont(Mono5x7); // Tentukan huruf
}

//----------------------------------------------------------------------
// LOOP

void loop() {

Disp.loop(); // Jalankan Disp loop untuk refresh LED
Disp.drawText(4, 0, "uteh"); // Tampilkan teks
Scrolling_Text(9, 50); // Tampilkan teks berjalan TeksJalan(posisi y, kecepatan);
}

//--------------------------
// TAMPILKAN SCROLLING TEKS

static const char *Text[] = {"NodeMCU ESP8266 P10 LED Panel with DMSESP"};

void Scrolling_Text(int y, uint8_t scrolling_speed) {
static uint32_t pM;
static uint32_t x;
int width = Disp.width();
Disp.setFont(Mono5x7);
int fullScroll = Disp.textWidth(Text[0]) + width;
if((millis() - pM) > scrolling_speed) {
pM = millis();
if (x < fullScroll) {
++x;
} else {
x = 0;
return;
}
Disp.drawText(width - x, y, Text[0]);
}
}

Result

. Variables and constants in RAM (global, static), used 28224 / 80192 bytes (35%)
β•‘ SEGMENT BYTES DESCRIPTION
╠══ DATA 1504 initialized variables
╠══ RODATA 968 constants
β•šβ•β• BSS 25752 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 60583 / 65536 bytes (92%)
β•‘ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
β•šβ•β• IRAM 27815 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 237076 / 1048576 bytes (22%)
β•‘ SEGMENT BYTES DESCRIPTION
β•šβ•β• IROM 237076 code in flash
esptool.py v3.0
Serial port COM12
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: c8:c9:a3:54:e8:aa
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 271520 bytes to 200433...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 271520 bytes (200433 compressed) at 0x00000000 in 17.8 seconds (effective 121.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Hello, @yush147 - Format your code in post #1 like this...

  1. Copy your code
  2. Format your code in the IDE (or any online formatter)
  3. Edit your post (click the pencil)
  4. Click the < CODE > button in the edit box
  5. Paste your code where you see ```type or paste your code here
  6. Click Save.

The result should look like this:

/*

    Contoh penggunaan library DMDESP
    email : bonny@grobak.net - www.grobak.net - www.elektronmart.com
*/

#include <DMDESP.h>
#include <fonts/ElektronMart6x8.h>
#include <fonts/Mono5x7.h>

//SETUP DMD
#define DISPLAYS_WIDE 1 // Kolom Panel
#define DISPLAYS_HIGH 1 // Baris Panel
DMDESP Disp(DISPLAYS_WIDE, DISPLAYS_HIGH); // Jumlah Panel P10 yang digunakan (KOLOM,BARIS)

//----------------------------------------------------------------------
// SETUP

void setup() {

  // DMDESP Setup
  Disp.start(); // Jalankan library DMDESP
  Disp.setBrightness(50); // Tingkat kecerahan
  Disp.setFont(Mono5x7); // Tentukan huruf
}

//----------------------------------------------------------------------
// LOOP

void loop() {

  Disp.loop(); // Jalankan Disp loop untuk refresh LED
  Disp.drawText(4, 0, "uteh"); // Tampilkan teks
  Scrolling_Text(9, 50); // Tampilkan teks berjalan TeksJalan(posisi y, kecepatan);
}

//--------------------------
// TAMPILKAN SCROLLING TEKS

static const char *Text[] = {"NodeMCU ESP8266 P10 LED Panel with DMSESP"};

void Scrolling_Text(int y, uint8_t scrolling_speed) {
  static uint32_t pM;
  static uint32_t x;
  int width = Disp.width();
  Disp.setFont(Mono5x7);
  int fullScroll = Disp.textWidth(Text[0]) + width;
  if ((millis() - pM) > scrolling_speed) {
    pM = millis();
    if (x < fullScroll) {
      ++x;
    } else {
      x = 0;
      return;
    }
    Disp.drawText(width - x, y, Text[0]);
  }
}

I moved your topic to an appropriate forum category @yush147.

The EspaΓ±ol category should only be used for topics written in the Spanish language.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

1 Like

I can see your code and upload, but not the result.
Does the code run ?
What does the display do wrong ?

1 Like

@yush147 Please clarify your "display not working" sentence.

1 Like

when i connected the esp8266 with the p10 led display it didn't work or nothing happened to my p10.

when the esp8266 was connected to the p10 led display. nothing happened to the p10 it didnt display anything. i do'nt know what's wrong

How did you wire the display?

1 Like

Posting an annotated schematic would help us help you. Links to technical information on the hardware devices is a big help as well.

thank you for your answer. it finally work. :smiley:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.