Getting started with MicroPython with NodeMCU(ESP8266) board

Getting started with MicroPython with NodeMCU(ESP8266) board 1. Follow the official tutorial to flash the MicroPython firmware Link: https://docs.micropython.org/en/latest/esp8266/quickref.html https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html#intro Comands you may need: $ esptool.py --port /dev/tty.usbserial-14120 erase_flash $ esptool.py --port /dev/tty.usbserial-14120 --baud 460800 write_flash --flash_size=detect -fm dout 0 esp8266-20210902-v1.17.bin you’ll receive message from ESP8266 on serial monitor such as puTTy: microPython v1.17 on 2021-09-02; ESP module with ESP8266 Type "help()" for more information. micropython script can be run in the REPL shell. The Adafruit ampy tool gives you more function and recommended to use it.

READ MORE

[ESP32_lvgl]Tips for getting started with lvgl project on ESP32

Tips for getting started with lvgl project on ESP32 Before you get started with lvgl on ESP32, the first problem is which SDK(firmware platform) is going to be based on. You may dev ESP32 project based on Arduino or ESP-IDF(espreessif officially offered). There are two pathes at least to implement ESP32 project. By the way, the esp32_library for arduino can be used as a submoduel(component) of ESP-IDF SDK. path1: ESP-IDF: Develop ESP32 lvgl project with vsCode, platformIO and ESP-IDF before start, you need to know how to implement a “Hello world” or “LED blinking” project using the vsCode+platformIO+ESP_IDF

READ MORE

[ESP32_lvgl]Start a lvgl project on ESP32 with vsCode, platformIO on Arduino platform

Start a lvgl project on ESP32 with vsCode, platformIO on Arduino platform WARING : The version confilict problem may crazy you if you play lvgl on Arduino platform. Fortunately, this post offers you one solution for version_conflict problem. This is the sister post for ‘Complile the lvgl sample proj in vsCode with ESP-IDF extension’. The difference is the dev-kit based on Arduino vs ESP-IDF. Here, we use Arduino + platformIO in vsCode for developing ESP32 SoC project with lvgl GUI.

READ MORE

[ESP32_lvgl]Complile the lvgl sample proj. in visual studio Code (vsCode) with help of ESP-IDF extension

Complile the lvgl sample project in visual studio Code (vsCode) with help of ESP-IDF extension If you’ve go through esp-idf vscode extension installation, esp-idf blink example, just skip the section 1 and section 2. Directly check the lvgl example project lv_port_esp32 cloning/configure/build/etc. steps in section 3. Implement a “Hello world” or “LED blinking” project using the vsCode+platformIO+ESP_IDF Prerequisit: Go through the official “get started with ESP-IDF” tutorial (highly recomemded, link) section 1. install the esp-idf vscode extension Note: if you have go through the official “get started with ESP-IDF” tutorial (highly recomemded, link), you can specify the path of ESP-IDF code and tools when install the ESP-IDF vscode extension.

READ MORE

Node.js realtime communication with ESP8266 via socket.io

Node.js realtime communication with NodeMCU with socket.io Reference: https://salfade.com/tutorials/realtime-communication-with-nodemcu-with-socketio Goal of this post Establish a real-time communication between a server and the NodeMCU, this can be really useful like a situation where the server has to notify the client asynchronously, Let’s get started with the back-end We are going to use a Node server, where we can integrate Socket.io init. Install Node.js if you haven’t it yet. In node, we ‘ll be using the framework called express to deal with the communication with HTTP requests.

READ MORE

Attiny85 Arduino SleepMode 睡眠模式使用笔记

Attiny85 Arduino SleepMode 睡眠模式使用笔记 Attiny 85 board: 这款迷你开发板带了6个IO口,4个ADC,I2C通信结构等资源,已经能应付很多控制场景了。 使用VScode + platformIO , 在Arduino框架下进行开发。睡眠模式探究

READ MORE

PIP and CONDA Add and Remove Mirror Source 配置软件源

First, PIP 1, add a source For example, add SJTU Source https://mirror.sjtu.edu.cn/pypi/web/simple: pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple If SET has multiple times, it seems to be only saved the mirror source of the last set. 2, delete the source pip config unset global.index-url 3, check which source now pip config list Second, Conda 1, add a source For example, Tsinghua Source: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes SJTU: conda config --add channels https://mirror.

READ MORE

Use Short Passwords On MacOS Big Sur. FOUR Characters Not Required.

Use Short Passwords On MacOS Big Sur. FOUR Characters Not Required. If you’re an Apple user and have macOS Big Sur, Catalina or Mojave installed on your machine you’ve probably realized you can’t use a password shorter than 4 characters anymore… Luckily, here is the easy fix. 1. Open “Terminal” on your machine. 2. Type this command & press Return (enter): `pwpolicy -clearaccountpolicies` 3. Terminal will ask you to enter the password for your admin profile. Terminal WILL NOT show the password as you type it.

READ MORE

win10双线网络设置

++++++ 双线网络设置 ++++++++ Wlan 设置跃点数1 [重要] 说明:这个使0.0.0.0的路由冲突时,可以优先走wlan 几个命令: 查看本机ip等信息: ipconfig 查看Route信息:route print 配置route信息: route -p add 172.23.0.0 mask 255.255.255.128 172.23.15.129 临时添加(不带-p): route add 172.16.0.0 mask 255.255.255.128 172.23.15.129 route add 172.16.0.0 mask 255.255.255.128 172.16.99.86 ++++++++++++++++++++++++++++++ 2021年9月6日10:31:47更新: 1. 首先删除默认路由 0.0.0.0: route delete 0.0.0.0 2. 添加默认外网路由: route add -p 0.0.0.0 mask 255.255.255.0 192.168.1.1 说明: 192.168.1.1 (是你的外网网关) 这里会造成0.0.0.0的路由冲突(机器重启后),还是通过wlan的跃点数来设置!! 3. 添加内网路由: route add -p 10.16.0.0 mask 255.255.128.0 10.16.0.1 说明:10.16.0.0 - 内网ip分配到的是 10.16.36.9, 这里取前2段,意思是这个网段内(内网网段)就走内网的网关10.16.36.9 。。。如果你的内网ip是 19.11.1.19, 那么相应的:19.11.0.0 此处我的ip是: IPv4 地址 . . . . . . .

READ MORE