Skip to content

Commit d871361

Browse files
committed
remove deprecated function sciencelab.setOnboardLed
this function has been replaced with sciencelab.WS2812B, and is unsupported in firmware. fixes fossasia#48
1 parent 2e6c264 commit d871361

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

PSL/sciencelab.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3694,34 +3694,6 @@ def get_pv3(self):
36943694
def get_pcs(self):
36953695
return self.DAC.getVoltage('PCS')
36963696

3697-
def setOnboardLED(self, R, G, B):
3698-
"""
3699-
set shade of WS2182 LED on PIC1572 1 RA2
3700-
3701-
.. tabularcolumns:: |p{3cm}|p{11cm}|
3702-
3703-
============== ============================================================================================
3704-
**Arguments**
3705-
============== ============================================================================================
3706-
R brightness of red colour 0-255
3707-
G brightness of green colour 0-255
3708-
B brightness of blue colour 0-255
3709-
============== ============================================================================================
3710-
"""
3711-
try:
3712-
self.H.__sendByte__(CP.COMMON)
3713-
self.H.__sendByte__(CP.SET_ONBOARD_RGB)
3714-
# G=reverse_bits(G);R=reverse_bits(R);B=reverse_bits(B)
3715-
self.H.__sendByte__(B)
3716-
self.H.__sendByte__(R)
3717-
self.H.__sendByte__(G)
3718-
self.__print__(B, R, G)
3719-
time.sleep(0.001)
3720-
self.H.__get_ack__()
3721-
return B, R, G
3722-
except Exception as ex:
3723-
self.raiseException(ex, "Communication Error , Function : " + inspect.currentframe().f_code.co_name)
3724-
37253697
def WS2812B(self, cols, output='CS1'):
37263698
"""
37273699
set shade of WS2182 LED on SQR1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy