Skip to content

Rahul-160/pi-top-4-.NET-SDK

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-top [4] .NET Core SDK with .NET Interactive Extensions

Check out dotnet/iot for loads of device bindings!

Build status

Quick Installation

Core

To install and configure your pi-top [4] with .NET Core SDK support, run this from your pi-top:

pi@pi-top:~ curl -L https://raw.githubusercontent.com/pi-top/pi-top-4-.NET-SDK/master/setup.sh | bash
pi@pi-top:~ source ~/.bashrc

Note: you should be able to re-run this at a later date to update.

After this, you will want to update your environment variables. Either start a new terminal instance, or run:

pi@pi-top:~ source ~/.bashrc

Python Environment

To extend with .NET Jupyter Notebook support, run this from your pi-top:

pi@pi-top:~ curl -L https://raw.githubusercontent.com/pi-top/pi-top-4-.NET-SDK/master/setup-jupyter.sh | bash

Quick Tour

Once executed, you will have this repo cloned at

/home/pi/pi-top-4-.NET-SDK

The code is compiled and the latest NuGet packages are located at

/home/pi/localNuget

You can activate the Python environment using the command:

pi@pi-top:~ source /home/pi/.jupyter_venv/bin/activate

Running Visual Studio Code Insiders and the .NET Interactive notebook extension on the device

You can install VS Code Insiders on your pi-top:

pi@pi-top:~ wget https://update.code.visualstudio.com/latest/linux-deb-armhf/insider -O code-insiders_1.50.0-1601271790_armhf.deb
pi@pi-top:~ sudo dpkg -i code-insiders_1.50.0-1601271790_armhf.deb

Then add the .NET interactive extension and now you can use .NET Interactive notebooks directly on your pi-top.

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.

To use the notebook examples in the folder examples/notebooks you will need jupyter lab

To use the notebook sampples in the folder examples/vs-code you will need vs-code and vs-code extension on your local machine

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

Example

image

About

pi-top [4] .NET Core SDK with .NET Interactive Extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 95.8%
  • Shell 3.8%
  • Other 0.4%