Beispiel #1
0
 def _gpio_handler_init(self):
     self.gpio_handler   = gpio.GPIO_handler(self.radio_isr_pin, self.push_button_pin,
                                             self.radio_driver.cb_radio_isr, self._cb_push_button)
     self.gpio_handler.init_binary_pins(self.led_array_pins)
     self.gpio_handler.init_binary_pins(self.TRX_frame_pin)
     for led in self.led_array_pins:
         self.gpio_handler.led_off(led)
     self.gpio_handler.led_off(self.TRX_frame_pin)
    def _gpio_handler_init(self):

        logging.info('gpio init!')
        self.gpio_handler = gpio.GPIO_handler(self.radio_isr_pin,
                                              self.push_button_pin,
                                              self.radio_driver.cb_radio_isr,
                                              self._cb_push_button)

        self.gpio_handler.init_binary_pins(self.led_array_pins)
        self.gpio_handler.init_binary_pins(self.TRX_frame_pin)
        self.gpio_handler.led_off(self.TRX_frame_pin)
        self.gpio_handler.binary_counter(0, self.led_array_pins)
        logging.info('GPIO INIT END')