m5flow version 1.0.0 : M5 Stick connection



  • How can I connect my M5STICK to UIFLOW ?
    I installed latest firmware and configured wifi, but the display doesn't give me anything.
    See :
    WiFi AP WebServer Start!
    Connect to Wifi SSID:M5Stack-6ec0
    And connect to esp via your web browser (like 192.168.4.1)
    listening on ('0.0.0.0', 80)
    {'ssid': 'telenet-A9204', 'password': 'xxx'}
    M5Stack Core try to connect WiFi: SSID:telenet-A9204 PASSWD:3FzZ5pCVaufP network...
    .................
    Connected. Network config: ('192.168.0.204', '255.255.255.0', '192.168.0.1', '192.168.0.1')
    ets Jun 8 2016 00:22:57

    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0018,len:4
    load:0x3fff001c,len:4912
    ho 0 tail 12 room 4
    load:0x40078000,len:8112
    load:0x40080000,len:6204
    entry 0x400802ec
    W (182) MicroPython: Entry
    W (1182) MicroPython: SPIRAM: Disabled
    W (1213) MicroPython: Configure stack
    W (1213) MicroPython: MPy stack: 0x3ffbf954 - 0x3ffc355c (15368)
    W (1213) MicroPython: Configure heap
    W (1217) MicroPython: MPy heap: 0x3ffc3560 - 0x3ffd75a0 (81920)
    W (1224) MicroPython: Main task exit, stack used: 1424
    W (1276) MicroPython: [=== MicroPython FreeRTOS task started (sp=3ffc3490) ===]
    

    Internal FS (SPIFFS): Mounted on partition 'internalfs' [size: 2752512; Flash address: 0x160000]

    Filesystem size: 2522624 B
    Used: 1400832 B
    Free: 1121792 B

    Device ID:3c71bf456ec0
    LCD initializing...Done!
    Connect WiFi: SSID:telenet-A9204 PASSWD:xxxxxxx network...
    .....
    Connected. Network config: ('192.168.0.204', '255.255.255.0', '192.168.0.1', '192.168.0.1')
    M5Cloud connected.



  • Hi @kurthofman Im afraid the functionality of the stick with Uiflow is currently quite limited and we are still in the process of writing micropython drivers for the oled screen so theres currently no way to display anything on the sticks screen with micropython . It is better to use the Arduino IDE to develop applications on the M5Stick, please see here for some examples of programming the stick with Arduino, theres only a few examples right now but more are coming soon.



  • @lukasmaximus

    Would I be correct in thinking that the difference between the camera is the camera has the (well, um) camera and the stick swaps the camera for an SPI screen?



  • I flashed UIFLOW firmware for M5Stick but OLED doesn't yet work I guess ?

    Code :
    from m5stack import *
    from m5ui import *

    lcd.clear()
    lcd.print('hello world', 0, 0, 0xffffff)
    speaker.tone(1600, 200)

    LCD goes blank and I hear a beep ...



  • @kurthofman

    currently most of the graphics blocks do not work directly with the stick yet without some modification.
    For instance you can use the lcd.line and lcd.rect blocks in graphics but the hex value for colour needs to be removed from the code since the OLED is a monochrome display.

    For example

    lcd.line(5, 5, 3, 3)
    lcd.rect(8, 8, 10, 10)

    For displaying text the lcd.text function is used. There is no blocks for this as of yet but you can type
    lcd.text(x value, y value) which I think is limited to 8 characters per line.

    For example

    lcd.text('hello',8, 5)
    lcd.text('world',8, 12)

    The speaker blocks work without modification, and most of the units should be able to interface normally
    with the stick on port A, I'm still testing so I cannot 100% confirm this.
    The Led can also be controlled with the digital write blocks in the Pin section

    Hope this helps



  • @ajb2k3 I haven't opened one up yet so I cant say for sure



  • @lukasmaximus said in m5flow version 1.0.0 : M5 Stick connection:

    @ajb2k3 I haven't opened one up yet so I can't say for sure

    I've just ordered one so will do a comparison when mine arrives.