A MicroPython library which experts have described as "framework-adjacent" and "probably not very good". Written to abstract away MicroPython board (ESP8266/ESP8285, ESP32, PyBoard, etc) specifics, and include support for all onboard hardware
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Maff 141b5a9d42 update more submodules 2 years ago
support update more submodules 2 years ago
.gitignore make password configs be in a different file, don't publish passwords in git 3 years ago
.gitmodules Added some semblance of support for the TTGO TS v1.2 board with ST7735-based colour LCD 3 years ago
.micropythonrc Added micropythonrc file 3 years ago
LICENSE Initial commit 3 years ago
README.md Updated README 3 years ago
boot.py make password configs be in a different file, don't publish passwords in git 3 years ago
flash.ps1 Add functionality for automatically identifying available COM ports. 3 years ago
fonts.py Added some semblance of support for the TTGO TS v1.2 board with ST7735-based colour LCD 3 years ago
init_sample.py merge in some other changes from work 3 years ago
main.py mqtt fun times 3 years ago
ssd1306.py Upload files to '' 3 years ago
uJIRA.py slight amount of change lol 3 years ago
uPaper.py merge in some other changes from work 3 years ago
uPyConfig.py corrected a brief brainfart 3 years ago
uPySensor.py okay so now rather than having microWebSrv i just wrote my own dang webserver. 3 years ago
uPyhttpd.py Finished renaming uPyhttpd, swapped bme280 for a submodule 3 years ago
uartloop.py adding uartloop module for turning a micropython board into a serial adapter 3 years ago
webrepl_cfg.sample.py make password configs be in a different file, don't publish passwords in git 3 years ago
wifi_cfg.sample.py make password configs be in a different file, don't publish passwords in git 3 years ago

README.md

uPyLibs

A MicroPython library which experts have described as "framework-adjacent" and "probably not very good".

Written to abstract away MicroPython board (ESP8266/ESP8285, ESP32, PyBoard, etc) specifics, and include support for all onboard hardware Currently, the library supports the following:

  • ESP8266-based boards:
    • Generic
    • Generic "arduino-compatible" D1 board (may be marked R2, may not, but it'd still be R2)
    • NodeMCU v1.0 (LOLINv3) dev boards
    • Heltec WiFi_Kit_8
    • TTGO-branded "gumstick"-style board with 128x32 SSD1306 OLED
  • ESP32-based boards:
    • Generic
    • "WeMos" LOLIN32 dev board with 128x64 SSD1306 OLED
    • Heltec WiFi_Kit_32
  • WiFi automatic setup where possible
    • Multiple wifi networks configured in a config file
  • i2c abstraction with automatic setup
  • OneWire abstraction
  • SSD1306-based OLED display setup
  • Sensor abstraction support
    • OneWire DS18B20 (Temperature)
    • i2c BME280 (Temperature, Humidity, Pressure)
    • i2c LM75A (Temperature)
    • i2c SHT21 (Temperature, Humidity)
  • Very basic webserver class supporting route definitions

Support is planned for the following:

  • nRF51-based boards supporting MicroPython:
    • BBC micro:bit
  • Atmel SAMD-based boards supporting MicroPython or CircuitPython:
    • Adafruit Trinket M0 (ATSAMD21-based) - board w/ integrated capacitive sensor on 1 pin
  • Expanded ESP8266-based board support
  • Expanded ESP32-based board support
    • Additional board definitions
      • TTGO TS v1.2 - board w/ 1.44" 128x160 65k colour LCD with ST7735 driver, mono speaker, MicroSD card port
      • Olimex ESP32-EVB - board w/ CANBUS transciever, ethernet port, 2x relays, MicroSD card port, IR emitter and receiver LEDs
      • TTGO-branded LoRa board - board w/ 128x64 SSD1306 OLED, LoRa transciever - silkscreen indicates Heltec made it
    • Support for peripherals present in ESP32
      • Capacitive Touch
      • Hall-effect Sensor
      • Internal Temperature
      • Bluetooth + Bluetooth Low Energy
  • Support for LoRa/LoRaWAN
  • Improved WiFi automatic setup, possibly storing WiFi network details in flash and falling back to broadcasting AP if STA connection is impossible
  • SPI abstraction with automatic setup
  • SPI Nokia 5110/3310 LCD display setup
  • Sensors
    • TMP36
  • Peripherals/Add-on boards
    • GSM modems
      • SMS
      • Data
    • GPS
      • Time sync
      • Location
  • tinyWebServer
    • Support for method-specific route definitions
    • Support for HTTP methods other than GET
    • Support for keep-alive
    • Support for threading
    • Automatic cleanup of sockets
    • HTTP request header passthru to handler
    • HTTP response header configuration by handler