OBSOLETE AS OF MAY 2024 Will be updated soon.
This repo includes code for abstracting Ubo hardware peripheral interfaces.
There are example code and readme for each peripheral inside each sub-directory.
This repo has been tested on latest 64-bit Raspberry Pi OS release:
uname -a
Linux ubo-106 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
32-bit OS is still under testing.
First, Update your system and clone this repository
sudo apt update
sudo apt upgrade
cd ~
git clone https://github.com/ubopod/ubo-sdk.git
Currently, we assume that the repo is cloned in /home/pi/ubo-sdk diretory. We will offer more flexibility for changing installation path in the future.
It is recommended that you do a reboot after the updates are installed before continueing to the next step.
sudo reboot
Run install script to setup everything. Make sure you do NOT install the SDK with sudo.
cd /home/pi/ubo-sdk/system/setup/
bash install.sh
Next reboot the ssystem This is necessary to load drivers and new config.txt
sudo reboot
Since all python packages are installed inside the virtual environment, it must be activated to run the python scripts.
source ~/ubo-venv/bin/activate
Now you should be able to run sample codes