Navigation

    M5Stack Community

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

    Best posts made by lukasmaximus

    • RE: M5Stack (basic/grey) as WiFi AP ?

      If you had taken the time to try and combine the code I gave you for the AP connection and the webserver code from my hackster project, you'd find it wasn't that hard. Even a guy with my limited abilities was able to bust out a quick concept in a few minutes.

      from m5stack import *
      from m5ui import *
      from uiflow import *
      import network
      
      try:
          import usocket as socket
      except:
          import socket
      
      def web_page():
          html = """<html><body>M5Stack AP Server</body></html>"""
          return html
      
      ap = network.WLAN(network.AP_IF)
      ap.active(True)
      ap.config(essid='ESP32Luke')
      ap.config(authmode=3, password='123456789')
      lcd.clear()
      
      response = None
      s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
      s.bind(('192.168.4.1',80))
      s.listen(5)
      
      while True:
          conn, addr = s.accept()
          request = conn.recv(1024)
          request = str(request)
          print ('Content = %s' % request)
          lcd.print('Content = %s' % request,0,50,0xffffff)
          if ap.isconnected() == True:
              lcd.print('connected',0,0,0xffffff)
          else:
              lcd.print('not connected',0,0,0xffffff)
          response = web_page()
          conn.send('HTTP/1.1 200 OK\n')
          conn.send('Content-Type: text/html\n')
          conn.send('Connection: close\n\n')
          conn.sendall(response)
          conn.close()
      
      posted in M5stack Grey
      lukasmaximus
    • RE: Members Introductions aka The Icebreaker discussion.

      Hi All, I'm Luke from the UK. I've been living in Shenzhen China for the past 6 or so years.
      During that time I've learnt a lot about electronics, programming and manufacturing just
      from being in Shenzhen and being curious.

      I now work for M5Stack full time. I mainly focus on promoting M5Stack as a tool for the
      STEM classroom. However being a tinkerer I'm always happy to mess around with our
      devices and see what I can create. I feel M5Stack has lowered the barrier for me to do
      otherwise complex projects and it has given me a real motivation to learn Python.

      My coding skills are still not great but I manage to get by and hope we can foster a spirit
      of sharing in this community where we can all learn from each other

      Best

      Luke

      posted in General
      lukasmaximus
    • RE: Unable to find documentation for Python in UIFlow

      Hey, got a little sidetracked with some other projects. Hopefully will be closer to finishing by the end of the month.

      posted in Cores
      lukasmaximus
    • RE: Core2 how to load WAV files

      I made a video on this subject not too long ago https://www.youtube.com/watch?v=AYIVRIQj6gE

      posted in UIFlow
      lukasmaximus
    • RE: Problem about M5stack GPS

      @ken57093 From your picture it looks like the baud rate maybe set wrong on your serial monitor. It should be 115200 baud

      posted in FAQS
      lukasmaximus
    • RE: [Solved]How to use the angle sensor?

      My apologies guys, I presumed you were using the m5go or fire as I am. If you are using the gray or black core models you will need to use jumper cables to attach the angle sensor to the pins on the bottom of the core as shown in this picture. it is not possible to connect the angle sensor to 22 or 23 as they are digital inputs, for the angle sensor we need an analog input or ADC (analog to digital converter) pin, so this is only possible on pins 35 and 36. try to connect as I show in these pictures and try again, it should display the numbers on both the serial monitor and the screen.![](http://imagehosting.biz/image/6ut
      http://imagehosting.biz/image/6u0)

      posted in Units
      lukasmaximus
    • RE: Cahnge Font Size in Python

      To my understanding the fonts supported by micropython are bitmap fonts and are thus unscalable. However there are bigger and smaller sizes of some of the fonts on the M5 for instance the dejavu font has 12pt, 18pt and 24pt.

      You can set the font by calling the command
      lcd.font(lcd.FONT_DejaVu24)

      micropython only supports .fon files an otherwise outdated font format. I managed to find a handful of other .fon fonts and put them in the fonts folder in the m5's flash. However thats not enough to use those fonts, they need to be setup in whichever script relates to the font, and I have not found it yet, no mention in the lcd module of the fonts.

      I will keep trying to add more fonts and if I have any progress I will report my findings here

      posted in Micropython
      lukasmaximus
    • RE: MicroPython lcd.qrcode is not work

      @komikoni Hi and sorry for the late reply. I tested myself and you are correct the lcd.qrcode is missing from the m5cloud firmware. I had a look in the REPL and noticed it was missing.
      see this screenshot https://ibb.co/njC2aA

      As the small development team we have has been fully focusing its efforts on Ui flow firmware of late I cannot foresee the m5cloud firmware being updated any time soon.

      I was wondering since uiflow is more feature rich than cloud now I was wondering why you prefer cloud over uiflow

      I'm sure you already figured it out but the lcd.qrcode command is used in this way

      lcd.qrcode('insert web url here', xposition, yposition, scale factor)

      for example

      lcd.qrcode('https://microsoft.com', 72, 32, 176)

      hope that helped, I will look into the problem to see if there are any alternative solutions

      posted in PRODUCTS
      lukasmaximus
    • RE: m5stack_index.json file signature verification failed

      Your cries are heard. The forum will be getting an overhaul pretty soon. Thanks for your patience

      posted in Arduino
      lukasmaximus
    • RE: Camera compile help please

      Glad it worked, Merry christmas bud :p

      posted in PROJECTS
      lukasmaximus
    • RE: lcd.setRotation() Not enabled?

      Hey @ajb2k3

      lcd.setRotation() requires a number 0-3 in the parentheses for each orientation, and it seems to clear the screen every time it rotates. I found I could print text in all 4 orientations of the screen if I used the print command after set Rotation. like so:

      lcd.setRotation(3) lcd.print('hello',100,100,0xffffff)
      hope that answers your question. I'm back from christmas hols now and i've seen you've been busy
      working on your own manual for the m5stack, awesome stuff, I'd love to connect with you and see how we can cooperate on a manual my email is luke@m5stack.com

      posted in Cores
      lukasmaximus
    • RE: lcd.setRotation() Not enabled?

      not sure thats even available in the python driver for the sticks screen yet. Will make a note of that though thanks

      posted in Cores
      lukasmaximus
    • RE: Graphics > Lcd.arc Radius bug.

      Thanks for pointing it out, I had found this bug recently, basically the block ignores whatever you put in the radius position, but as you say it can be corrected in python.

      posted in Bug Report
      lukasmaximus
    • RE: [Solved]Official Grove cables - buckled or unbuckled?

      Just a caveat guys, beware that some vendors of the grove cables have the yellow and white wires switched so if you find your units aren't functioning correctly remember to check the cables first.

      posted in Units
      lukasmaximus
    • RE: Continue to try Wifi Connection indefinitely, and go back to the connection/reboot if a try fails.

      The fonts used on the m5stack are bitmap fonts and therefore are not scalable, they are whatever size they were converted in. A while back on our forums one of our users loboris who is an active developer in the micropython community developed a cool tool to convert any font file in any size you want to a .fon bitmap font format, you cant find it here http://forum.m5stack.com/topic/388/cahnge-font-size-in-python/20

      posted in Micropython
      lukasmaximus
    • RE: M5Stick Watch

      @mawg the original stick can be purchased via the following links:
      https://www.aliexpress.com/store/product/M5Stack-Official-New-M5Stick-Mini-Development-Kit-ESP32-1-3-OLED-80mAh-Battery-Inside-Buzzer-IR/3226069_32994893797.html?spm=2114.12010615.8148356.13.25ba781bqWZV2X

      https://m5stack.com/collections/m5-core/products/m5stack-official-new-m5stick-mini-development-kit-esp32-1-3oled-80mah-battery-inside-buzzer-ir-transmitter-mpu9250-optional

      The main differences between the stick and stick c are that the stick c has a smaller screen but it is color opposed to the monochrome oled of the original, the power management chip is different, there are a bunch more sensors added etc.. for a detailed comparison you can check the docs pages for both the stick and the stick c

      https://docs.m5stack.com/#/en/core/m5stick
      https://docs.m5stack.com/#/en/core/m5stickc

      posted in News and Blog posts
      lukasmaximus
    • RE: Background noise

      For arduino you should be able to use this,
      dacWrite (25,0);

      there will still be a tiny sound, but barely audible

      posted in General
      lukasmaximus
    • RE: UIFlow Firmware, ToF unit and ampy

      The video @ajb2k3 was referring to is here https://www.youtube.com/watch?v=Y9pOWgsNgKk&t=73s hope it helps

      posted in UIFlow
      lukasmaximus
    • RE: M5StickV category

      Done http://forum.m5stack.com/category/33/m5stick-v

      posted in Cores
      lukasmaximus