Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Add toggle to GpioPin (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored May 24, 2018
1 parent d3d1dc6 commit e899aa9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/Gpio​Pin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,16 @@ internal void OnPinChangedInternal(GpioPinEdge edge)
callbacks?.Invoke(this, new GpioPinValueChangedEventArgs(edge));
}

/// <summary>
/// Toggles the output of the general purpose I/O (GPIO) pin if the pin is configured as an output.
/// </summary>
/// <remarks>
/// This method is exclusive of nanoFramework and it's not available in the UWP API.
/// </remarks>
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void Toggle();


#region IDisposable Support

private bool _disposedValue;
Expand Down

0 comments on commit e899aa9

Please sign in to comment.