Navigation

    M5Stack Community

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

    pavelprosto

    @pavelprosto

    5
    Reputation
    7
    Posts
    365
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Website github.com/pavelprosto94/

    pavelprosto Follow

    Posts made by pavelprosto

    • Add yourself a New Year's mood - Christmas clock is here!

      alt text

      πŸŽ„πŸŽ„πŸŽ„Add yourself a New Year's mood! Decorate your M5Stack with a Christmas tree! #M5StackXmas2022πŸŽ„πŸŽ„πŸŽ„

      What can they do:

      • Animated wallpaper with a Christmas tree
      • Adaptive backlight mode will set the brightness depending on the time of day (Bright screen during the day and dim at night).
      • Add up to 4 alarm clocks. You can set up a repeat by day of the week.
      • Disable and activate alarms using the alarm clock manager.
      • Using the settings menu, you can synchronize your watch with the time from the Internet, adjust the brightness of the screen, select an alarm ringtone.
      • Connect to Wi-Fi using Wi-Fi Manager(No need to reboot your device)
      • View the weather using OpenWeather API
      • Run the any *.py scripts from app directory(Calculator, Timer, Weather and etc.).
      • You can enter debug mode directly from the watch menu.

      Warning:
      The M5Stack processor is weak, and drawing snow is a very difficult process for it. Therefore, the firmware may freeze. Fixed by rebooting the device. Please, if you use this firmware version as an alarm clock, set the alarm additionally on another more reliable device.
      And yes, the snowballs are falling very slowly (interval is more than 5 seconds)

      You can install by connecting M5Stack to your computer and using M5Burner to upload the firmware.
      If you have UIFlow_Core 2 firmware, you can download all scripts from GitHub
      https://github.com/pavelprosto94/christmas_tree_clock/

      posted in PROJECTS
      pavelprosto
    • RE: Canvas don't work on M5Stack Core 2

      code:

      import lvgl as lv
      canvas = lv.canvas(lv.scr_act(), None)
      

      error:

      Traceback (most recent call last):
        File "<stdin>", line 2, in <module>
      AttributeError: 'NoneType' object has no attribute '__dereference__'
      
      posted in Micropython
      pavelprosto
    • RE: Turn your M5Stack into a space clock

      if you want the same stand as in the photo. This is a free 3d printer model
      https://www.thingiverse.com/thing:4883660

      posted in PROJECTS
      pavelprosto
    • RE: Turn your M5Stack into a space clock

      ThanksπŸ˜‰

      posted in PROJECTS
      pavelprosto
    • Turn your M5Stack into a space clock

      Turn your M5Stack Core 2 into a space clock

      What can they do:

      • Animated space wallpaper with a flying astronaut
      • Adaptive backlight mode will set the brightness depending on the time of day (Bright screen during the day and dim at night).
      • Add up to 4 alarm clocks. You can set up a repeat by day of the week.
      • Disable and activate alarms using the alarm clock manager.
      • Get notifications from your phone via Bluetooth.
      • Using the settings menu, you can synchronize your watch with the time from the Internet, adjust the brightness of the screen, select an alarm ringtone.
      • Connect to Wi-Fi using Wi-Fi Manager(No need to reboot your device)
      • View the weather using OpenWeather API
      • Run the any *.py scripts from app directory(Calculator, Timer, Weather and etc.).
      • You can enter debug mode directly from the watch menu.
        alt text

      I plan to add:

      • App store. Download applications from the Internet and run them from an SD card.
      • Localization

      You can install this firmware from M5Burner or if you have the current version of UIFlow_Core 2 run the code of the installer from my GitHub (then your existing scripts should be saved)

      posted in PROJECTS
      pavelprosto
    • Canvas don't work on M5Stack Core 2

      I'm try run simple code:

      import lvgl as lv
      
      def LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h):
          return int(((w / 8) + 1) * h)
      
      def LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h):
          return LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2
      
      def LV_CANVAS_BUF_SIZE_INDEXED_1BIT(w, h):
          return LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h)
      
      CANVAS_WIDTH  = 50
      CANVAS_HEIGHT = 50
      
      # Create a buffer for the canvas
      cbuf= bytearray(LV_CANVAS_BUF_SIZE_INDEXED_1BIT(CANVAS_WIDTH, CANVAS_HEIGHT))
      
      # Create a canvas and initialize its the palette
      canvas = lv.canvas(lv.scr_act(), None)
      canvas.set_buffer(cbuf, CANVAS_WIDTH, CANVAS_HEIGHT, lv.img.CF.INDEXED_1BIT)
      canvas.set_palette(0, lv.color_hex(0x00ff00))
      canvas.set_palette(1, lv.color_hex(0xff0000))
      
      # Create colors with the indices of the palette
      c0 = lv.color_t()
      c1 = lv.color_t()
      
      c0.full = 0
      c1.full = 1
      
      # Transparent background
      canvas.fill_bg(c1, lv.OPA.TRANSP)
      
      # Create hole on the canvas
      for y in range(10,30):
          for x in range(5,20):
              canvas.set_px(x, y, c0)
      

      An error occurs when running the code.

      Traceback (most recent call last):
        File "<stdin>", line 19, in <module>
      AttributeError: 'NoneType' object has no attribute '__dereference__'
      

      But everything works in the lvgl simulator.

      posted in Micropython
      pavelprosto
    • RE: Use lvgl canvas on Core2

      it was 2022, canvas does not work as before 😭😭😭

      posted in Micropython
      pavelprosto