def set_backlight(self, backlight):
        if self._backlight is not None:
            if self._pwm_enabled:
                self._pwm.set_duty_cycle(self._backlight, self._pwm_duty_cycle(backlight))
            else:
                self._gpio.output(self._backlight, self._blpol if backlight else not self._blpol)
Used to emit a generated configuration from ``config_template``.
dataset/ETHPy150Open adafruit/Adafruit_Python_CharLCD/Adafruit_CharLCD/Adafruit_CharLCD.py/Adafruit_CharLCD.set_backlight--crossover with--dataset/ETHPy150Open dropbox/nsot/nsot/util/core.py/generate_settings