nanoFramework.System.Device.Adc
1.0.2-preview.13
Prefix Reserved
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
<PackageReference Include="nanoFramework.System.Device.Adc" Version="1.0.2-preview.13" />
paket add nanoFramework.System.Device.Adc --version 1.0.2-preview.13
#r "nuget: nanoFramework.System.Device.Adc, 1.0.2-preview.13"
// 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
Welcome to the .NET nanoFramework System.Device.Adc Library repository
Build status
Component | Build Status | NuGet Package |
---|---|---|
System.Device.Adc | ||
System.Device.Adc (preview) |
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.12.0-preview.19)
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,846 | 11/9/2023 |
1.1.6 | 24,986 | 12/22/2022 |
1.1.4 | 319 | 12/22/2022 |
1.0.2 | 142,044 | 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 | 873 | 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 |