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

    Seleccionar pines para SPI en Stamp C3

    Scheduled Pinned Locked Moved Foro español
    1 Posts 1 Posters 2.3k 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.
    • F Offline
      ferqtek
      last edited by

      Como acceder a los pines del SPI hardware en Stamp C3. He visto que se pueden asignar asi con el MUX_IO pero no consigo que funcione con un TFT ST7789.

      #define TFT_MOSI GPIO_NUM_7
      #define TFT_SCLK GPIO_NUM_6
      #define TFT_CS GPIO_NUM_5
      #define TFT_DC GPIO_NUM_4
      #define TFT_RST GPIO_NUM_0

      Con las librerias especificas no consigo saber como asignar correctamente los pines accesibles en el SOC:

      #include <Adafruit_GFX.h>
      #include "Adafruit_ST7789.h" // Hardware-specific library for ST7789
      #include <SPI.h> // Arduino SPI library

      Alguien ha probado la reasignación de pines con el MUX_IO ?? Como puedo hacer que funcione por hardwarw porque va muy lento por software 600Khz máx. Gracias.

      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