Skip to content

Commit

Permalink
Update ESP32LEDMatrixManager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
beniroquai committed Mar 5, 2024
1 parent fb774d2 commit 5bb6c7c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def setLEDSingle(self, indexled=0, state=(0,0,0)):
def setLEDIntensity(self, intensity=(0,0,0)):
self.mLEDmatrix.setIntensity(intensity)

def setValue(self, intensity, getReturn=False):
"""Handles output power.
Sends a RS232 command to the LEDMatrix specifying the new intensity.
"""
self.mLEDmatrix.setAll(1, (intensity, intensity, intensity))


# Copyright (C) 2020-2023 ImSwitch developers
Expand Down

0 comments on commit 5bb6c7c

Please sign in to comment.