#NEWLINE# def set_backlight( self , backlight ) : #NEWLINE# #INDENT# 'Enable or disable the backlight.  If PWM is not enabled (default), a\n        non-zero backlight value will turn on the backlight and a zero value will\n        turn it off.  If PWM is enabled, backlight can be any value from 0.0 to\n        1.0, with 1.0 being full intensity backlight.\n        ' #NEWLINE# if ( self . _backlight is not None ) : #NEWLINE# #INDENT# if self . _pwm_enabled : #NEWLINE# #INDENT# self . _pwm . set_duty_cycle ( self . _backlight , self . _pwm_duty_cycle ( backlight ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _gpio . output ( self . _backlight , ( self . _blpol if backlight else ( not backlight . _blpol ) ) )