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
<PackageReference Include="nanoFramework.System.Device.Adc" Version="1.1.11" />
paket add nanoFramework.System.Device.Adc --version 1.1.11
#r "nuget: nanoFramework.System.Device.Adc, 1.1.11"
// 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
Welcome to the .NET nanoFramework System.Device.Adc Library repository
Build status
Component | Build Status | NuGet Package |
---|---|---|
System.Device.Adc |
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- nanoFramework.CoreLibrary (>= 1.15.5)
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 |