Skip to content
/ uPy Public

Libs, Drivers and Tests scripts for micropython enabled VK boards

Notifications You must be signed in to change notification settings

Vekatech/uPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

uPy

Libs & Drivers for micropython enabled VK boards

Content :

Currently the list of micropython enabled VK boards is as follows :

Libs

  • Test > this Lib tests the following peripheries of uPy VK boards:
    • I2C (expects slave to be connected on SDA & SCL )
      • Once Test.py & ssd1306.py are in FS of the board, you are ready to run it like so:
      >>> import Test
      >>> Test.OLED()
    • SPI (expects slave to be connected on SCK, MOSI, & D7-D9 )
      • Once Test.py & st7789.py are in FS of the board, you are ready to run it like so:
      >>> import Test
      >>> Test.TFT()
  • Lvg > this Lib tests the LVGL module (expects SBC-LCD01 (SPI) or parallel (RGB) display to be connected):
    • Once pRGB.py, st77xx.py & lv_utils.py are in FS of the board, you are ready to run it like so:
    >>> import Lvg
    >>> Lvg.TST()
  • MB > this Lib tests network module & RS485 of uPy VK boards:
    • Once gateway.py is in FS of the board, you are ready to run it like so:
    >>> import gateway
    >>> gateway.ON() # or use gateway.ON(True) if you want see the data, passing through the gateway.
    • Once started this gateway.py turns every uPy VK board in to a Modbus TCP/RTU Gateway device which can support one TCP master and multiple RTU slaves (RS485).
  • MBserv > this Lib tests network module of uPy VK boards:
    • Once MBserv.py, umodbus folder & Settings.json are in FS of the board, you are ready to run it like so:
    >>> import MBserv
    >>> MBserv.UP() # or use MBserv.UP('<File_name>.json') if you want to start the server with non deffault settings (port and mac), you shuld put them in a json file.
    • Once started this MBserv.py turns every uPy VK board in to a Modbus TCP Server. All available LEDs can be set and read as coils and all available BTNs can be read as discret inputs. DACs & digital outputs D[0-13] can be set as holding registers. Digital inputs D[0-13] can be read as input registers. You can also control D[0-13] to be input or output from 1 of the holding regs.
  • GWserv > this Lib tests network module of uPy VK boards:
    • Once GWserv.py, microdot folder content & Settings.json are in FS of the board, you are ready to run it like so:
    >>> import GWserv
    • Once started this GWserv.py turns every uPy VK board in to a WEB + Modbus TCP/RTU Gateway device. Gateway is configured through Settings.json file. WEB interface is under construction.
  • CAMDisplay > this Lib tests LCD & CAM modules of uPy VK-RA6M3 board:
    • DEMO (expects OV7725 cam and paralel RGB display to be connected on M3 board)
      • Once started this DEMO captures the camera video and display it on the LCD screen. Touching the eye icon you can change between several camera effects.
  • FlashDirList > this Lib tests network module of uPy VK-RA6M5 board:
    • DEMO (expects LAN cable to be plugged in M5 board)
      • Once started this DEMO starts web server and performs directory list function on the content of the internal flash of the board

Drv

  • ssd1306 > murcopython OLED driver (works with devices based on that particular controller, such as SBC-OLED01)
  • st7789 > micropython TFT driver (works with devices based on that particular controller, such as SBC-LCD01)
  • st77xx > micropython TFT driver (LVGL)(works with devices based on SPI interface, such as SBC-LCD01)
  • pRGB > micropython TFT driver (LVGL)(works with devices based on parallel interface, such as RGB)

About

Libs, Drivers and Tests scripts for micropython enabled VK boards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages