Remarks

Ky038
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Sensors.Sound.Ky038

Code Example

Ky038 sensor;

public override Task Initialize()
{
    Console.WriteLine("Initialize...");

    sensor = new Ky038(Device, Device.Pins.A00, Device.Pins.D10);

    return Task.CompletedTask;
}

public override Task Run()
{
    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Characteristic Locus
Inheritance System.Object > Ky038
Namespace Meadow.Foundation.Sensors.Sound
Assembly Ky038.dll

Syntax

public class Ky038 : object

Constructors

Ky038(IAnalogInputPort, IDigitalInputPort)

Create a new Ky038 object

Declaration
public Ky038(IAnalogInputPort analogPort, IDigitalInputPort digitalInputPort)

Parameters

Type Name Description
IAnalogInputPort analogPort

The port for the to A0 pin

IDigitalInputPort digitalInputPort

The port for the to D0 pin

Ky038(IMeadowDevice, IPin, IPin)

Create a new Ky038 object

Declaration
public Ky038(IMeadowDevice device, IPin pinA0, IPin pinD0)

Parameters

Type Name Description
IMeadowDevice device

The device connected to the sensor

IPin pinA0

A0 pin

IPin pinD0

D0 pin