nanoFramework.System.Device.Adc 1.0.2-preview.13

Prefix Reserved
This is a prerelease version of nanoFramework.System.Device.Adc.
There is a newer version of this package available.
See the version list below for details.
dotnet add package nanoFramework.System.Device.Adc --version 1.0.2-preview.13                
NuGet\Install-Package nanoFramework.System.Device.Adc -Version 1.0.2-preview.13                
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="nanoFramework.System.Device.Adc" Version="1.0.2-preview.13" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.System.Device.Adc --version 1.0.2-preview.13                
#r "nuget: nanoFramework.System.Device.Adc, 1.0.2-preview.13"                
#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.
// Install nanoFramework.System.Device.Adc as a Cake Addin
#addin nuget:?package=nanoFramework.System.Device.Adc&version=1.0.2-preview.13&prerelease

// Install nanoFramework.System.Device.Adc as a Cake Tool
#tool nuget:?package=nanoFramework.System.Device.Adc&version=1.0.2-preview.13&prerelease                

Quality Gate Status Reliability Rating License NuGet #yourfirstpr Discord

nanoFramework logo


Welcome to the .NET nanoFramework System.Device.Adc Library repository

Build status

Component Build Status NuGet Package
System.Device.Adc Build Status NuGet
System.Device.Adc (preview) Build Status NuGet

Usage

Each target device has an ADC Controller, no matter how many ADC hardware blocks the microcontroller has. To read a channel, one must first instantiate the ADC controller and open the channel from which it's intended to read from. In order to read the raw value from an ADC channel, it's a simple matter of calling the Read() method on a open channel.

AdcController adc1 = new AdcController();

AdcChannel channel0 = adc1.OpenChannel(0);

int myAdcRawvalue = channel0.ReadValue();

To find details about the ADC controller, one can query the various properties of the ADC controller, like this.

// get maximum raw value from the ADC controller
int max1 = adc1.MaxValue;

// get minimum raw value from the ADC controller
int min1 = adc1.MinValue;

// find how many channels are available 
int channelCount = adc1.ChannelCount;

// resolution provided by the ADC controller
int adcResolution = adc1.ResolutionInBits;

Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.

Join our Discord community here.

Credits

The list of contributors to this project can be found at CONTRIBUTORS.

License

The nanoFramework Class Libraries are licensed under the MIT license.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on nanoFramework.System.Device.Adc:

Package Downloads
nanoFramework.M5Core2

This package includes the nanoFramework.M5Core2 assembly for .NET nanoFramework C# projects.

nanoFramework.M5Core

This package includes the nanoFramework.M5Core assembly for .NET nanoFramework C# projects.

nanoFramework.AtomLite

This package includes the nanoFramework.AtomLite assembly for .NET nanoFramework C# projects.

nanoFramework.AtomMatrix

This package includes the nanoFramework.AtomMatrix assembly for .NET nanoFramework C# projects.

nanoFramework.Fire

This package includes the nanoFramework.Fire assembly for .NET nanoFramework C# projects.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on nanoFramework.System.Device.Adc:

Repository Stars
nanoframework/Samples
🍬 Code samples from the nanoFramework team used in testing, proof of concepts and other explorational endeavours
nanoframework/nanoFramework.IoT.Device
📦 This repo includes .NET nanoFramework implementations for various sensors, chips, displays, hats and drivers
Version Downloads Last updated
1.1.11 10,726 11/9/2023
1.1.6 24,940 12/22/2022
1.1.4 316 12/22/2022
1.0.2 142,039 3/30/2022
1.0.2-preview.15 159 3/28/2022
1.0.2-preview.13 231 3/17/2022
1.0.2-preview.11 217 3/14/2022
1.0.2-preview.8 312 2/17/2022
1.0.2-preview.6 384 1/28/2022
1.0.2-preview.4 270 1/21/2022
1.0.1 869 12/23/2021
1.0.0-preview.13 204 12/2/2021
1.0.0-preview.11 175 11/30/2021
1.0.0-preview.8 295 10/29/2021
1.0.0-preview.6 189 10/29/2021
1.0.0-preview.1 226 10/27/2021