ThunderSharpLibrary 0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ThunderSharpLibrary --version 0.0.1
                    
NuGet\Install-Package ThunderSharpLibrary -Version 0.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ThunderSharpLibrary" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ThunderSharpLibrary" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ThunderSharpLibrary" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ThunderSharpLibrary --version 0.0.1
                    
#r "nuget: ThunderSharpLibrary, 0.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ThunderSharpLibrary@0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ThunderSharpLibrary&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ThunderSharpLibrary&version=0.0.1
                    
Install as a Cake Tool

ThunderSharp

NuGet Package

CodeQL

Overview

This project is a .NET Core implementation of the control library for the ThunderBorg controller for the PiBorg: https://www.piborg.org/ The core of this project stems from a Mono implemention written by mshmelv called RPi.I2C.Net: https://github.com/mshmelev/RPi.I2C.Net The library leverages the C library libnativei2c.so, and this gentlemen has some really good information located here and here

Dot Net on Raspberry Pi

The .NET Core 3.1 (at the time of this writing) runtime engine is available from Microsoft. Installation is done using the steps located at Microsoft's website: https://docs.microsoft.com/en-us/dotnet/iot/deployment

NuGet Package Nuget

The NuGet package is available with the command

Install-Package ThunderSharpLibrary

Future

This .md is part of the project, and will be updated as time goes on.

ThunderBorgSettings_class

Attributes

Id

Used for assigning an ID value in case you are storing this in a database.

BoardAddress

Tracks the board address of the settings. NOTE if you try to restore settings using SetCurrentEnvironment and the board address does not match, the class will throw an ArugmentException.

VoltagePinMax

Exposes the voltage pin max that was in use by the code at the time that the settings were captured. NOTE this value is a constant in the code, set by VOLTAGE_PIN_MAX in the ThunderBorg class.

BatteryMonitorMin

This is the minimum value used by the GetBatteryMonitoringLimits method of the ThunderBorg object.

BatteryMonitorMax

This is the maximum value used by the GetBatteryMonitoringLimits method of the ThunderBorg ojbect.

LED1_Red / LED1_Green / LED1_Blue

Each of these bytes represents the settings for LED1: red, green and blue.

LED2_Red / LED2_Green / LED2_Blue

Each of these bytes represents the settings for LED2: red, green and blue.

BatteryMonitoringState

True / false value representing the battery monitoring state.

FailSafeState

True / false value representing the failsafe state.

IsUsed [readonly]

True / false state indicating whether or not the object has been assigned any value; false indicates that it has not changed since instantiation.

Events

PropertyChanged()

Trigger when a value assigned to the object changes.

Methods

GetCurrentEnvironment(ThunderBorg_class, Logger_class)

Sets the object to the current ThunderBorg settings that it finds.

SetCurrentEnvironment(ThunderBorg_class, Logger_class)

Sets the current environment to the settings in the object, subject to the board address being the same. This method will not work if the object has not been changed since instantiation.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.2 699 3/27/2021
0.0.1 498 3/21/2021