Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newest Micropython and ST7789 plus examples and Wifi Library #46

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

PIBSAS
Copy link

@PIBSAS PIBSAS commented Sep 20, 2024

Added a yaml workflow to compile latest MicroPython with ST7789:

Automatic build once a month a new Micropython with ST7789 Display Driver, with tft_configs and tft_buttons like frozen modules, because those will not change for us, at least ST7789 Russhughes change in his repo, so why we need to put it manually? if we are using the T-PicoC3 display only. Add some fonts from ST7789 and TPicoESPC3 module based on MP_ESP01s but with more functions, this let us connect to wifi, scan networks through AT commands. The .uf2 is renamed to RP2040.uf2 and published in Release so anyone can get a newest Micropython without wait vendor make a new one.

On Docs:

Update:
Raspberry Pi Pico-Series C/C++ SDK [Version 3.0 from 07 Jul 2024]
Raspberry Pi Pico-Series Python SDK [Version 3.0 from 07 Jul 2024]
ESP32 C3 Technical Reference Manual English [2024-01-19 v1.1]
ESP32 C3 Technical Reference Manual Chinese [2024-01-19 v1.1]
ESP32 C3 Wireless Adventure [Free Book from Espressif]
Get Started with Micropython [Free Book from HackSpace]
And add a README with Covers to get update versions of documentation from official sites[Raspberry Pi and Espressif].

Examples for MicroPython:

  1. Simulating Arduino Firmware Code behaviour [The one in T-PicoC3\example\factory\pico\firmware\firmware.ino]
    • Show Connecting message, the IP Address, then show Raspberry Pi Logo gradually brightness, then press a button to Scan networks or show Battery Status. and blink led, test wifi.
  2. I2C_scanner Like the one in [T-PicoC3\example\arduino\I2C_scanner\I2C_Scanner.ino]
  3. Blink Like the one in [T-PicoC3\example\arduino\blink\blink.ino] but using the display too.
  4. Blink Screen [Blink the screen not the LED Built-in ]
  5. Button Test [Only a hardware test with output serial]
  6. Colors [Run all the Constants colors available in ST7789 Driver]
  7. Progressive Brightness [Turn on the screen slowly till max bright]
  8. Write Screen [Shows the three ways of present Text on the Screen using ST7789 Driver]
  9. Image [Push an image in the screen]
  10. Wifi Connect [Connect to a Wifi given the data, show the IP]
  11. 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].
  12. Get APs [Scan networks around showing all details given by AT+CWLAP: RSSI, MAC, Channel, Scan Type, Min Scan time, Max Scan time, Pairwise Cipher, Group Cipher, 802.11 bands, WPS, Security] Like all details doesn't fit in screen, there is another code with scroll.]
  13. Get APs Scroll [Scan networks around showing all details given by AT+CWLAP and scroll the data one SSID at time]
  14. Get APs Multiscroll [Scan networks around showing all details given by AT+CWLAP and scroll the data all together]

Make some aesthetic changes on README like a line separator, and subtitle for led description and port description.

1. Simulating Arduino Firmware Code behaviour [The one in T-PicoC3\example\factory\pico\firmware\firmware.ino]
   - Show Connecting message, the IP Address, then show Raspberry Pi Logo gradually brightness, then press a button to Scan networks or show Battery Status. and blink led, test wifi.
2. I2C_scanner Like the one in [T-PicoC3\example\arduino\I2C_scanner\I2C_Scanner.ino]
3. Blink Like the one in [T-PicoC3\example\arduino\blink\blink.ino] but using the display too.
3. Blink Screen [Blink the screen not the LED Built-in ]
4. Button Test [Only a hardware test with output serial]
5. Colors [Run all the Constants colors available in ST7789 Driver]
6. Progressive Brightness [Turn on the screen slowly till max bright]
7. Write Screen [Shows the three ways of present Text on the Screen using ST7789 Driver]
8. Image [Push an image in the screen]
9. Wifi Connect [Connect to a Wifi given the data, show the IP]
10. 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].
11. Get APs [Scan networks around showing all details given by AT+CWLAP: RSSI, MAC, Channel, Scan Type, Min Scan time, Max Scan time, Pairwise Cipher, Group Cipher, 802.11 bands, WPS, Security] Like all details doesn't fit in screen, there is another code with scroll.]
12. Get APs Scroll [Scan networks around showing all details given by AT+CWLAP and scroll the data one SSID at time]
13. Get APs Multiscroll [Scan networks around showing all details given by AT+CWLAP and scroll the data all together]
Raspberry Pi Pico C/C++ SDK [Version 3.0 from 07 Jul 2024]
Raspberry Pi Pico-Series Python SDK [Version 3.0 from 07 Jul 2024]
ESP32 C3 Technical Reference Manual English [2024-01-19 v1.1]
ESP32 C3 Technical Reference Manual Chinese [2024-01-19 v1.1]
Add hyperlinks to official pages to get newest documentation
Automatic build once a month a new Micropython with ST7789 Display Driver, with tft_configs and tft_buttons like frozen modules, because those will not change, at least ST7789 Russhughes change in his repo, so why we need to put manually?, if we are using the T-PicoC3 display only. add some fonts from ST7789 and TPicoESPC3 module based on MP_ESP01s but with more functions, this let us connect to wifi, scan networks through  AT commands. The .uf2 is renamed to RP2040.uf2 and published in Release so anyone can get a newest Micropython without wait vendor make a new one.
Update checkout to v4, add action to get the micropython current release for use in title release, added this  to title.
move from old marvinpinto to action-gh-release for ppublish release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant