pi-top
.NET Core API for pi-top4, check out the dotnet/iot repo for loads of device bindings!
Experimental!!
Set up all by running this from your pitop
pi@pi-top:~ curl -L https://raw.githubusercontent.com/colombod/pi-top/master/setup-device.sh | bash -e
Once executed you will have this repo cloned at
/home/pi/pi-top-net-api
The code is compiled and the NuGet packages version 1.1.1 are located at
/home/pi/localNuget
You can activate the Python environment using the command
pi@pi-top:~ source .jupyter_venv/bin/activate
Later on can jsut update using the command
pi@pi-top:~ curl -L https://raw.githubusercontent.com/colombod/pi-top/master/update-device.sh | bash -e
Manual installation steps
The src
directory contains the code for libraries you can use to create .NET Core apps for the amazing pi-top4 platform. Get one and get creative.
Requires .NET Core SDK 3.1 LTS for ARM32
The libraries comes along with dotnet interactive
integration so you can use notebooks to explore the power of pi-top.
- install the
dotnet interactive
tool as shown here - install Camera library dependencies
To use the notebook examples in the folder examples/notebooks
you will need jupyter lab
- install jupyter and jupyter lab modules
To use the notebook sampples in the folder examples/vs-code
you will need vs-code and vs-code extension on your local machine
- install vscode extension
Build the libraries and packages
- build the project
> dotnet build
- if you do not have it, create the folder
/home/pi/localNuget
- pack the projects with
> sh tools/pack.sh 1.1.1
it will package the project into the/home/pi/localnuget
using version 1.1.1
Look at this example.