HelTec WIFI KIT 32 and MicroPython
Posted: Thu Nov 02, 2017 3:16 am
Hi guys,
I recent bought one WIFI KIT 32 from chinese HeltTec Automation ( http://www.heltec.cn/index.php/project/wifi_kit_32/ )
It seems well done and robust, integrate a ssd1306 based OLED display (128x64) LiPo chargher, Flash size: 32M-Bits, and it's very cheap! I live in Sahnghai and I paied only 8$ .
I installed micropython (following this guide https://www.instructables.com/id/MicroP ... ated-SSD1/ ) and almost work fine, this is the home screen:
>>> ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4332
load:0x40078000,len:0
load:0x40078000,len:10992
entry 0x4007a6c4
I (355) cpu_start: Pro cpu up.
I (355) cpu_start: Single core mode
I (356) heap_init: Initializing. RAM available for dynamic allocation:
I (359) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (365) heap_init: At 3FFDCD60 len 000032A0 (12 KiB): DRAM
I (371) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (377) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (384) heap_init: At 4008FC7C len 00010384 (64 KiB): IRAM
I (390) cpu_start: Pro cpu start user code
I (184) cpu_start: Starting scheduler on PRO CPU.
main.py: Hello
MicroPython v1.9.2-443-g236297f4 on 2017-11-01; ESP32 module with ESP32
Type "help()" for more information.
The blink test was good, I2C scan too, But when I try to start the display, I have this error:
>>> import machine, ssd1306
>>> i2c = machine.I2C(scl=machine.Pin(15), sda=machine.Pin(4))
>>> oled = ssd1306.SSD1306_I2C(128, 64, i2c)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ssd1306.py", line 117, in __init__
File "ssd1306.py", line 37, in __init__
File "ssd1306.py", line 62, in init_display
File "ssd1306.py", line 122, in write_cmd
OSError: [Errno 19] ENODEV
Can anyone help me?
Thaks
Alberto (Sorry for my poor english ...)
I recent bought one WIFI KIT 32 from chinese HeltTec Automation ( http://www.heltec.cn/index.php/project/wifi_kit_32/ )
It seems well done and robust, integrate a ssd1306 based OLED display (128x64) LiPo chargher, Flash size: 32M-Bits, and it's very cheap! I live in Sahnghai and I paied only 8$ .
I installed micropython (following this guide https://www.instructables.com/id/MicroP ... ated-SSD1/ ) and almost work fine, this is the home screen:
>>> ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4332
load:0x40078000,len:0
load:0x40078000,len:10992
entry 0x4007a6c4
I (355) cpu_start: Pro cpu up.
I (355) cpu_start: Single core mode
I (356) heap_init: Initializing. RAM available for dynamic allocation:
I (359) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (365) heap_init: At 3FFDCD60 len 000032A0 (12 KiB): DRAM
I (371) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (377) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (384) heap_init: At 4008FC7C len 00010384 (64 KiB): IRAM
I (390) cpu_start: Pro cpu start user code
I (184) cpu_start: Starting scheduler on PRO CPU.
main.py: Hello
MicroPython v1.9.2-443-g236297f4 on 2017-11-01; ESP32 module with ESP32
Type "help()" for more information.
The blink test was good, I2C scan too, But when I try to start the display, I have this error:
>>> import machine, ssd1306
>>> i2c = machine.I2C(scl=machine.Pin(15), sda=machine.Pin(4))
>>> oled = ssd1306.SSD1306_I2C(128, 64, i2c)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ssd1306.py", line 117, in __init__
File "ssd1306.py", line 37, in __init__
File "ssd1306.py", line 62, in init_display
File "ssd1306.py", line 122, in write_cmd
OSError: [Errno 19] ENODEV
Can anyone help me?
Thaks
Alberto (Sorry for my poor english ...)