<s> '''<STR_LIT>''' <EOL> from led import LED <EOL> import RPi . GPIO as GPIO <EOL> from device import Device <EOL> from sbs . tools import Tools <EOL> BLINK_DURATION = <NUM_LIT> <EOL> class LegacyLED ( LED ) : <EOL> def __init__ ( self , pin , name ) : <EOL> super ( LegacyLED , self ) . __init__ ( pin , name ) <EOL> Tools . log ( "<STR_LIT>" + str ( self . pin ) ) <EOL> GPIO . setup ( self . pin , GPIO . OUT ) <EOL> def blink ( self ) : <EOL> GPIO . output ( self . pin , GPIO . HIGH ) <EOL> time . sleep ( BLINK_DURATION ) <EOL> GPIO . output ( self . pin , GPIO . LOW ) <EOL> def on ( self ) : <EOL> GPIO . output ( self . pin , GPIO . HIGH ) <EOL> def off ( self ) : <EOL> GPIO . output ( self . pin , GPIO . LOW ) </s>
