sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi libssl-dev python3 python3-pip python3-venv build-essential libffi-dev git pkg-configgit clone https://github.com/russhughes/st7789_mpy.gitgit clone --recurse-submodules https://github.com/micropython/micropython.gitcd st7789_mpy
cp "examples/configs/t-picoc3/tft_config.py" $HOME/micropython/ports/rp2/modules/
cp "examples/configs/tdisplay_rp2040/tft_buttons.py" $HOME/micropython/ports/rp2/modules/
cp "examples/chango/*.py" $HOME/micropython/ports/rp2/modules/
cp "fonts/*.py" $HOME/micropython/ports/rp2/modules/Build MicroPython+ST7789:
cd micropython
make -C mpy-cross
cd ports/rp2
make USER_C_MODULES=../../../st7789_mpy/st7789/micropython.cmake
make submodules
makeNote: If make user line fail, change ../../../ for the full path, example: /home/your_user/st7789_mpy/st7789/micropython.cmake.
1. Download the .uf2 file from the release.
2. Press and hold the BOOT button on the RP2040 and press RESET button or connect it to your computer via USB.
3. Release the button. The RP2040 will appear as a removable drive.
4. Drag and drop the .uf2 file onto the drive..
5. The RP2040 will reboot and run MicroPython..
Please use the examples located in the examples folder of the st7789_mpy repository.
micropython/ports/rp2/build-RPI_PICO/firmare.uf2
Please use the examples located in the examples folder of the st7789_mpy repository
- Simulating Arduino Firmware Vendor's Code behaviour:
- Like the one in
T-PicoC3\example\factory\pico\firmware\firmware.ino. - Show Connecting message, the IP Address, show Raspberry Pi Logo gradually brightness, then press a button to Scan networks or the other to show Battery Status. Plus blink led and test wifi connection.
- Like the one in
- I2C_scanner:
- Like the one in
T-PicoC3\example\arduino\I2C_scanner\I2C_Scanner.ino.
- Like the one in
- Blink:
- Like the one in
T-PicoC3\example\arduino\blink\blink.inobut using the display too.
- Like the one in
- Blink Screen:
- Blink the screen not the LED Built-in.
- Button Test:
- Only a hardware test with serial output.
- Colors: Run all the Constants colors available in ST7789 Driver.
- Progressive Brightness:
- Turn on the screen slowly till max bright.
- Write Screen:
- Shows the three ways of present Text on the Screen using ST7789 Driver.
- Image:
- Push an image in the screen.
- Wifi Connect:
- Connect to a Wifi given the data, show the IP.
- Join AP:
- Connect to an AP similar to the previous but using different function.
- Showing:
- RSSI:
- Reconn-interval.
- BSSID.
- Channel.
- Scan mode.
- Listen interval.
- PMF.
- PCI_EN.
- And finally SSID, all this one line at time.
- Get APs:
- Scan networks around showing all details given by AT+CWLAP:
- RSSI: Signal strength.
- MAC: String parameter showing MAC address of the AP.
- Channel: Channel.
- Scan Type: Wi-Fi scan type. Default: 0.
- 0: active scan.
- 1: passive scan
- Min Scan time: The minimum active scan time per channel. Unit: millisecond. Range [0,1500]. If the scan type is passive, this parameter is invalid.
- Max Scan time: The maximum active scan time per channel. Unit: millisecond. Range [0,1500]. If this parameter is 0, the firmware will use the default time: 120 ms for active scan; 360 ms for passive scan.
- Pairwise Cipher: Pairwise cipher type.
- 0: None
- 1: WEP40
- 2: WEP104
- 3: TKIP
- 4: CCMP
- 5: TKIP and CCMP
- 6: AES-CMAC-128
- 7: Unknown
- Group Cipher: Group cipher type, same enumerated value to <pairwise_cipher>
- 802.11 bands: If the corresponding bit is 1, the corresponding mode is enabled; if the corresponding bit is 0, the corresponding mode is disabled.
- bit 0: bit to identify if 802.11b mode is enabled or not.
- bit 1: bit to identify if 802.11g mode is enabled or not.
- bit 2: bit to identify if 802.11n mode is enabled or not
- WPS: Wps flag.
- 0: WPS disabled.
- 1: WPS enabled
- Security: encryption method.
- 0: OPEN.
- 1: WEP.
- 2: WPA_PSK.
- 3: WPA2_PSK.
- 4: WPA_WPA2_PSK.
- 5: WPA2_ENTERPRISE.
- 6: WPA3_PSK.
- 7: WPA2_WPA3_PSK.
- 8: WAPI_PSK.
- 9: OWE.
- Like all details doesn't fit in screen, there is another code with scroll.
- Scan networks around showing all details given by AT+CWLAP:
- Get APs Scroll:
- Scan networks around showing all details given by
AT+CWLAPand scroll the data one SSID at time.
- Scan networks around showing all details given by
- Get APs Multiscroll:
- Scan networks around showing all details given by
AT+CWLAPand scroll the data all together.
- Scan networks around showing all details given by
Raspberry Pi Pico
ESP32 C3







