Skip to main content

Meadow.Foundation.Sensors.Sound.Ky038

Ky038
StatusStatus badge: working
Source codeGitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Sensors.Sound.Ky038

Code Example

Ky038 sensor;

public override Task Initialize()
{
Resolver.Log.Info("Initialize...");

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

return Task.CompletedTask;
}

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

Sample project(s) available on GitHub

Class Ky038

Represents a KY038 sound sensor

Assembly: Ky038.dll
View Source
Declaration
public class Ky038 : IDisposable

Implements:
System.IDisposable

Properties

IsDisposed

Is the object disposed

View Source
Declaration
public bool IsDisposed { get; }

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source
Declaration
public void Dispose()

Dispose(bool)

Dispose of the object

View Source
Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
System.BooleandisposingIs disposing

Events

SoundDetected

Raised when sound is detected

View Source
Declaration
public event EventHandler SoundDetected
Event Type

System.EventHandler

Implements

  • System.IDisposable