🤖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

    Foro español
    1
    1
    911
    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
      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
      • First post
        Last post