Files
Scanning the repository...
Last update 4 years 10 months
by Tisham Dhar
| Filessoftware | |
|---|---|
| .. | |
| README.md | |
| bq25895.py | |
| oled-exp-pif.py | |
| qwiic_switch.py |
README.mdSetting 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 Python one, it will also require
a standard python2 installation on the Omega2
opkg install python. - Install an RMate client on the Onion Omega for Remote VSCode)
- Use Rmate 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.pyto pop open the file to edit - Edit and save on VSCode with ease, then execute over the SSH shell on the Onion