πŸ“¦ System.Device.Adc library for .NET nanoFramework
ΠŸΠ΅Ρ€Π΅ΠΉΡ‚ΠΈ ΠΊ Ρ„Π°ΠΉΠ»Ρƒ
github-actions[bot] d5a8c7ae29
Update 1 NuGet dependencies
***NO_CI***
2024-06-04 01:38:07 +01:00
.github/workflows Work CI-CD 2022-01-10 23:42:02 +00:00
System.Device.Adc Update 1 NuGet dependencies 2024-06-04 01:38:07 +01:00
assets Initial commit (#1) 2021-10-27 18:13:09 +02:00
config Initial commit (#1) 2021-10-27 18:13:09 +02:00
.github_changelog_generator Initial commit (#1) 2021-10-27 18:13:09 +02:00
.gitignore Initial commit (#1) 2021-10-27 18:13:09 +02:00
CHANGELOG.md Update CHANGELOG for v1.1.11 2023-11-09 12:39:47 +00:00
LICENSE.md Initial commit (#1) 2021-10-27 18:13:09 +02:00
NuGet.Config Initial commit (#1) 2021-10-27 18:13:09 +02:00
README.md Work CI-CD 2022-03-30 12:23:21 +01:00
azure-pipelines.yml Work CI-CD 2024-01-20 21:44:36 +00:00
nanoframework.System.Device.Adc.nuspec Update 1 NuGet dependencies 2023-11-09 12:23:01 +00:00
nanoframework.System.Device.Adc.sln Initial commit (#1) 2021-10-27 18:13:09 +02:00
template.vssettings Initial commit (#1) 2021-10-27 18:13:09 +02:00
version.json Work CI-CD 2022-08-03 18:52:41 +01:00

README.md

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.