Tuesday, August 11, 2020

Python example to read OS info using os.uame()

The function os.uname() returns information identifying the current operating system. The return value is an object with five attributes:

  • sysname - operating system name
  • nodename - name of machine on network (implementation-defined)
  • release - operating system release
  • version - operating system version
  • machine - hardware identifier

example code: sysinfo.py

import os

uname = os.uname()
print("sysname: " + uname.sysname)
print("nodename: " + uname.nodename)
print("release: " + uname.release)
print("version: " + uname.version)
print("machine: " + uname.machine)

Run on Raspberry Pi

Monday, August 10, 2020

Thonny/esptool on Raspberry Pi, to develop ESP32 using MicroPython.

This video show how to install esptool on Raspberry Pi, and setup Thonny to run MicroPython on ESP32.

Install esptool:
$ pip3 install esptool

Download microPython firmware for SP32:
Visit https://micropython.org/download/esp32/.

Start Thonny and switch to Regular mode, close and restart Thonny to run in Regular mode.

Run > Select Interpreter
> Select MicroPython (ESP32) from th pull-download menu.
> Open the dialog for installing or upgrading MicroPython on your device
> Select Port and firmware

Press and Hold the on-board BOOT button untill download start.


Friday, July 17, 2020

Wio Terminal HMI Display for Raspberry Pi

Now you can use Wio Terminal as a HMI USB display for Raspberry Pi.

The wiki (https://wiki.seeedstudio.com/Wio-Terminal-HMI/) introduce how to use Wio Terminal as a HMI (Human Machine Interface) USB display for Raspberry Pi, Nvidia Jetson Nano, BeagleBone and even Odyssey X86J4105!