ATOM Lite Display not display in smallHd 503



  • Hi all,

    somebody knows ATOM Display Lite settings for display on SmallHD 503 monitor?

    best regards



  • Hello @cepics

    SmallHD 503 : 1920 x 1080

    :--------------------------------------------------
    Arduino IDE

    #include <M5AtomDisplay.h>

    You can set the resolution (width, height) with the argument.
    If omitted, 1280, 720
    // M5AtomDisplay display(); // 1280 x 720

    M5AtomDisplay display(1920,1080,24); // 1920 x 1080 , 24bit

    // TOSHIBA REGZA 32BC3 32inch 1366x768
    // M5AtomDisplay display(1366,768); // 1366 x 768

    // M5AtomDisplay display(1920/2,1080/2,24);

    example
    // ( 480, 1920);(1920, 480);(1280, 720);(1024, 768);
    // ( 960, 540);( 800, 600);( 640, 480);( 640, 400);
    // ( 640, 360);( 512, 212);( 256, 192);( 320, 240);
    // ( 240, 320);( 200, 200);( 240, 135);( 135, 240);
    // ( 160, 160);( 160, 80);( 80, 160);( 80, 80);

    It may not be displayed correctly depending on the supported resolution of the display.
    It may be possible to display by setting the resolution (width, height) to be output to the display with arguments 3 and 4.
    You can also set the width and height magnification with arguments 5 and 6.
    If the enlarged resolution is less than the output resolution, there will be a gap around the screen.

    // M5AtomDisplay display ( 512, 384, 1280, 800, 2, 2 );
    // M5AtomDisplay display ( 683, 384, 1366, 768, 2, 2 );

    • The width magnification must be a number that is divisible by the width of the output resolution

    // ex: M5AtomDisplay display ( 400, 250, 1280, 800, 3, 3 );
    In this example, 1280 is not divisible by 3, so the horizontal magnification is changed to 2.

    :--------------------------------------------------
    Reference :
    M5GFX/docs/ATOMDisplay.md
    M5GFX/examples/
    https://github.com/m5stack/M5GFX

    Overview of internal processing of ATOM Display(ATOM Displayの内部処理概要)
    https://qiita.com/ciniml/items/30759f0083df5e07865f

    Panel_M5HDMI.hpp
    https://github.com/m5stack/M5GFX/blob/master/src/lgfx/v1/panel/Panel_M5HDMI.hpp#L117

    :--------------------------------------------------
    Exsample :

    #include <M5AtomDisplay.h>
    M5AtomDisplay display(1920,1080,24);

    void setup(void){
    display.init();
    display.setRotation(0); //0=normal/1=90deg/2=180deg/3=270deg/4~7=upside down
    display.setColorDepth(24); // 24bit per pixel color setting // Set the color depth
    display.startWrite();
    for (int y = 0; y < display.height(); ++y){
    for (int x = 0; x < display.width(); ++x){
    display.writePixel(x, y, display.color888(x, x+y, y));
    }
    }
    display.endWrite();

    display.startWrite();
    for (int i = 0; i < 16; ++i){
    int x = rand() % display.width();
    int y = rand() % display.height();
    display.drawCircle(x, y, 16, rand());
    }
    display.endWrite();
    }

    void loop(void){
    display.startWrite();
    static constexpr const char hello_str[] = "Hello ATOM Display !";
    display.setFont(&fonts::Orbitron_Light_32);
    for (int i = -display.textWidth(hello_str); i < display.width(); ++i){
    display.drawString(hello_str,i,(display.height()-display.fontHeight())>>1);
    }
    display.endWrite();
    }
    :--------------------------------------------------



  • @macsbug said in ATOM Lite Display not display in smallHd 503:

    1920/2,1080/2,24

    No way to display something on the 503.... I tried all configuration:

    // M5AtomDisplay display(); // 1280 x 720
    M5AtomDisplay display(1920,1080,24); // 1920 x 1080 , 24bit
    // M5AtomDisplay display(1366,768); // 1366 x 768
    // M5AtomDisplay display(1920/2,1080/2,24);
    // ( 480, 1920);(1920, 480);(1280, 720);(1024, 768);
    // ( 960, 540);( 800, 600);( 640, 480);( 640, 400);
    // ( 640, 360);( 512, 212);( 256, 192);( 320, 240);
    // ( 240, 320);( 200, 200);( 240, 135);( 135, 240);
    // ( 160, 160);( 160, 80);( 80, 160);( 80, 80);

    when I connect hdmi cable to the 503, the monitor "feel" something (green led on and image settings in the "in settings page" of 503) but no image displayed.....

    the same cable works in other setup....



  • from SmallHD503 datasheet:

    HDMI Input Types

    YCC 4:2:2 @ 8 bits, 8/10/12 bit color in RGB & YCC 4:4:4: 1080p60, 1080p59.94, 1080p50, 1080p30, 1080p29.97 1080p25, 1080p24, 1080p23.98,1080i60, 1080i59.94, 1080i50, 1080i30, 1080i29.97, 1080i25, 720p120, 720p119.88, 720p100, 720p60, 720p59.94 , 720p50, 720p30, 720p29.97, 720p25, 720p24, 720p23.98, 480p120, 480p119.88, 480p60, 480p59.94, 576p100, 576p50, 480i240, 480i239.76, 480i120, 480i119.88, 480i60, 480i59.94, 480i30, 480i29.97, 480i24, 480i23.98, 576i200, 576i100, 576i50, 576i25



  • @cepics said in ATOM Lite Display not display in smallHd 503:

    SmallHD503 datasheet

    I read that you are also struggling with this (5 inch?) display. I am facing the same issues with Waveshare 5inch display. Although I have the very strong feeling that the software on the M5AtomDisplay as shipped is different from the GitHub factory test. Have you been able to get things working?



  • no, still don't work!!
    yes 5 inches.......



  • Waveshare displays can be hit and miss. I have a 7.1" that will work sometimes with the display but not always and sometime wont work with other HDMI devices.