Method | Description | |
---|---|---|
Buzz ( |
Start the buzzer at the specified frequency.
|
|
Buzz ( |
Start the buzzer at the specified frequency for the specified duration.
|
|
BuzzerComponent ( IGpio pwmPin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Buzzer.BuzzerComponent class with the pin the buzzer is attached to.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Buzzer.BuzzerComponent. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Buzzer.BuzzerComponent in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Buzzer.BuzzerComponent so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Buzzer.BuzzerComponent was occupying. |
|
Stop ( ) : void |
Stops the buzzer.
|
public Buzz ( |
||
freq | /// The frequency to buzz at. /// | |
return | void |
public Buzz ( |
||
freq | /// The frequency to buzz at. /// | |
duration | /// The duration in milliseconds. /// | |
return | void |
public BuzzerComponent ( IGpio pwmPin ) : System | ||
pwmPin | IGpio | /// The pin the buzzer is attached to. /// |
return | System |