🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Display Module 13.2 with PoE BASE (v12)

    Modules
    2
    2
    855
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BTSPERTH
      last edited by

      Hey I have the Display Module 13.2, and whilst I have gotten the output to work, I can't get ethernet to work at the same time. If I fire up ethernet at the start of sketch it is all working, but as soon as I run this command "M5.begin(cfg);" to start the display, ethernet no longer has IP address and no longer functions.

      Any help appreciated.

      #include <Arduino.h>
      #include <M5ModuleDisplay.h>
      #include <M5Unified.h>
      #include <SPI.h>
      #include <Ethernet2.h>
      #define SCK 18
      #define MISO 19
      #define MOSI 23
      #define CS 26

      byte mac[] = { 0xAA, 0x4D, 0xBE, 0xEF, 0xFE, 0xED };
      int udpPort = 9090;

      void setup() {
      auto cfg = M5.config();

      SPI.begin(SCK, MISO, MOSI, -1);
      Ethernet.init(CS);
      Ethernet.begin(mac);

      Serial.begin(115200); // Initialize serial communication
      Serial.println(" ");
      Serial.print("Local IP ");
      Serial.println(Ethernet.localIP());
      Serial.print("Gateway ");
      Serial.println(Ethernet.gatewayIP());

      cfg.external_speaker.module_display = true;
      cfg.external_display.module_display = true;
      

      Serial.println(" ");
      Serial.print("Local IP ");
      Serial.println(Ethernet.localIP());
      Serial.print("Gateway ");
      Serial.println(Ethernet.gatewayIP());

      // If you want to change the resolution, uncomment the following lines and
      // adjust the values
        cfg.module_display.logical_width = 640;
        cfg.module_display.logical_height = 360;
        cfg.module_display.refresh_rate = 50;
      

      Serial.println(" ");
      Serial.print("Local IP ");
      Serial.println(Ethernet.localIP());
      Serial.print("Gateway ");
      Serial.println(Ethernet.gatewayIP());

      M5.begin(cfg);
      

      Serial.println(" ");
      Serial.print("Local IP ");
      Serial.println(Ethernet.localIP());
      Serial.print("Gateway ");
      Serial.println(Ethernet.gatewayIP());

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @BTSPERTH

        the display module schematic shows GPIO26 - BUS_G26 - F_G26 connected to BANK1 which would mean there is a conflict with Ethernet CS.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post