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

    Looking for the basics

    Scheduled Pinned Locked Moved Arduino
    4 Posts 3 Posters 5.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.
    • H Offline
      Hamnet
      last edited by

      Just got my first M5 device (M5paper), which is also my first experience of ESP32. I'm really missing the entry point and a full reference.

      I've got it working with the Arduino IDE, and can compile and run a few of the samples. But as soon as I try to move beyond these, I'm missing the basic map and signposts.

      For example, this sample code uses

      canvas.drawJpgUrl("https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/example_pic/flower.jpg");

      it works, and that's fantastic. But now if I want to do something else with the WiFi just want to fetch a string from a URL, obviously there's a whole WiFi library which must support that - where do I find the documentation? Is there anywhere I can find the definition of canvas.drawJpgUrl?

      Is this an M5-specific thing? Or an ESP32-generic thing? Is there a reference to the functions available?

      TIA,

      David.

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

        Hello @Hamnet

        some M5Paper specific APIs can be found here.

        WiFi is part of the ESP32 and not M5Paper specific, so you probably best search for something like Arduino WiFi examples.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • S Offline
          silentmonkey
          last edited by

          Hi David.

          Check out https://randomnerdtutorials.com/esp32-web-server-arduino-ide/ the tutorials on this site are very good and there are loads of them. Remember your M5paper is basically an ESP32 with a in built touch screen display.

          H 1 Reply Last reply Reply Quote 0
          • H Offline
            Hamnet @silentmonkey
            last edited by

            Thank you both Felix and @silentmonkey. I'm navigating the M5 docs, but as I've whinged elsewhere, although they give function signatures (not complete I think, e.g. I've seen examples which don't match the reference) I'm missing context.

            In relation to HTTP, there seem to be a lot of different Arduino libraries - copy and pasting from random examples on the internet has got me somewhere, but is there any guidance for a newbie as to the 'good' ones to go for? For example I'm currently able to fetch data from 'http:' URL, but not 'https:' - although the canvas.drawJpgUrl example function uses an 'https:' URL and that works...

            Thanks again for responding.

            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