🤖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)

    Scheduled Pinned Locked Moved Modules
    2 Posts 2 Posters 1.6k Views
    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 Offline
      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 Online
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post