nanoFramework.System.Device.Adc 1.1.11

Prefix Reserved
dotnet add package nanoFramework.System.Device.Adc --version 1.1.11                
NuGet\Install-Package nanoFramework.System.Device.Adc -Version 1.1.11                
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.1.11" />                
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.1.11                
#r "nuget: nanoFramework.System.Device.Adc, 1.1.11"                
#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.1.11

// Install nanoFramework.System.Device.Adc as a Cake Tool
#tool nuget:?package=nanoFramework.System.Device.Adc&version=1.1.11                

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

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,811 11/9/2023
1.1.6 24,970 12/22/2022
1.1.4 317 12/22/2022
1.0.2 142,042 3/30/2022
1.0.2-preview.15 160 3/28/2022
1.0.2-preview.13 234 3/17/2022
1.0.2-preview.11 218 3/14/2022
1.0.2-preview.8 313 2/17/2022
1.0.2-preview.6 385 1/28/2022
1.0.2-preview.4 273 1/21/2022
1.0.1 871 12/23/2021
1.0.0-preview.13 205 12/2/2021
1.0.0-preview.11 176 11/30/2021
1.0.0-preview.8 298 10/29/2021
1.0.0-preview.6 190 10/29/2021
1.0.0-preview.1 227 10/27/2021