Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. shahabdhafiz
    S
    • Continue chat with shahabdhafiz
    • Start new chat with shahabdhafiz
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    shahabdhafiz

    @shahabdhafiz

    0
    Reputation
    4
    Posts
    163
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    shahabdhafiz Follow

    Posts made by shahabdhafiz

    • RE: Convert string to hex

      @iamliubo hi, thanks for the reply.

      I managed to do the example from what you gave and I got the results as it is. but, after several checking, I received bytes from the uart. Then, I need to convert to hex. the method i used is:

      hexVal = hex(int.from_bytes(serData, "big"))
      label14.set_text(str(hexVal)) //to show the hexVal to the label
      

      I got the idea from the example you gave and THANK YOU so much for that =)

      posted in SOFTWARE
      S
      shahabdhafiz
    • Convert string to hex

      Hi all..
      I am using M5Stack Core 2. Anyone can help me on converting string to hex. I got string from the uart and I want to convert them to hex value. I couldn't find on how to do it in Blocky or in micropython. One of the example I follow on youtube can't be used. The link is https://www.youtube.com/watch?v=SHylh5iaVXI

      posted in SOFTWARE
      S
      shahabdhafiz