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

    CoreS3 touch with Arduino

    Scheduled Pinned Locked Moved Cores
    4 Posts 3 Posters 3.2k 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.
    • J Offline
      jaysom
      last edited by

      I can't seem to figure out getting touch to work in an Arduino sketch, are there any examples available?

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

        Hello @jaysom

        please find a simple touch application drawing random colored circles here.

        Thanks
        Felix

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

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          Fusion Automate @felmue
          last edited by

          @felmue

          ESP-ROM:esp32s3-20210327
          Build:Mar 27 2021
          rst:0xc (RTC_SW_CPU_RST),boot:0x28 (SPI_FAST_FLASH_BOOT)
          Saved PC:0x403776d1
          SPIWP:0xee
          mode:DIO, clock div:1
          load:0x3fce3818,len:0x508
          load:0x403c9700,len:0x4
          load:0x403c9704,len:0xad0
          load:0x403cc700,len:0x29e4
          entry 0x403c9880
          E (1892) mmap: esp_mmu_unmap(595): munmap target pointer is outside external memory regions

          assert failed: spi_flash_munmap flash_mmap.c:241 (0 && "invalid handle, or handle already unmapped")

          Backtrace: 0x403770be:0x3fcf3cd0 0x4037bec1:0x3fcf3cf0 0x40381d01:0x3fcf3d10 0x420170d3:0x3fcf3e40 0x42016c09:0x3fcf3e60 0x42016d0d:0x3fcf3e80 0x42016fa7:0x3fcf3eb0 0x4200e2ac:0x3fcf3f10 0x4200f701:0x3fcf3f40 0x4203e15d:0x3fcf3f70 0x4037eaa6:0x3fcf3fb0

          ELF file SHA256: 6f57f6b7e2510519

          Rebooting...

          I have tried your code but when I upload it using arduino ide I am getting this error in serial monitor can you help me plz ?

          felmueF 1 Reply Last reply Reply Quote 0
          • felmueF Offline
            felmue @Fusion Automate
            last edited by felmue

            Hello @Fusion-Automate

            have you tried any of the official M5CoreS3 examples? Do any of them work?

            Edit: It looks like M5Stack moved M5CoreS3 to use M5Unified library - I've adapted my touch example. Thank you for reporting.

            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