Files

Scanning the repository...

Last update 4 years 7 months by Tisham Dhar
Filessoftware
..
README.md
bq25895.py
oled-exp-pif.py
qwiic_switch.py
README.md

Setting up software on Onion Omega 2 to use peripherals

  • Connect to wifi
  • Update packages opkg update
  • Install base python3 opkg install python3-light
  • The scripts with logging will require opkg install python3
  • Install i2c module opkg install python3-onion-i2c
  • Install oled module opkg install python3-oled-exp
  • Install spi module opkg install python3-spidev
  • Connect to the Onion Omega hardware from VSCode over ssh
  • Install some form of rmate, may be the <![CDATA[]]>Python one<![CDATA[]]>, it will also require a standard python2 installation on the Omega2 opkg install python.
  • Install an RMate client on the Onion Omega for <![CDATA[]]>Remote VSCode<![CDATA[]]>)
  • Use <![CDATA[]]>Rmate<![CDATA[]]> to edit python script files over SSH. The Rmate stuff takes a bit of getting used to. Essential steps are :
    • Install the plugin in VSCode
    • Start the RMate server on the host using the VSCode Command Pallette
    • Setup SSH port forward from host with ssh -R 52698:127.0.0.1:52698 root@xxx.xxx.xxx.xxx
    • Start rmate on the remote with rmate -p 52698 bq25895.py to pop open the file to edit
    • Edit and save on VSCode with ease, then execute over the SSH shell on the Onion
Report a bug