Skip to content

Commit

Permalink
Merge pull request #251 from WildernessLabs/feature/backlit-display
Browse files Browse the repository at this point in the history
add IBacklitDisplay interface
  • Loading branch information
adrianstevens authored Jul 23, 2024
2 parents a579ff5 + 74b8418 commit d2240fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Source/Meadow.Contracts/Peripherals/Displays/IBacklitDisplay.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace Meadow.Peripherals.Displays;

/// <summary>
/// Defines a Display with a controllable backlight
/// </summary>
public interface IBacklitDisplay : IDisplay
{
/// <summary>
/// Sets the backlight intensity.
/// </summary>
/// <param name="intensity">Intensity value</param>
/// <remarks>For displays with boolean power, use 0 for off and non-zero for on</remarks>
void SetBacklightIntensity(byte intensity);
}

0 comments on commit d2240fb

Please sign in to comment.