Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_led_pins = [
- ("led_pins", 0, Pins("P3:2"), IOStandard("LVCMOS33")),
- ("led_pins", 1, Pins("P3:3"), IOStandard("LVCMOS33")),
- ]
- self.platform.add_extension(my_led_pins)
- io_led_pins = self.platform.request("led_pins")
- io_led_pins += self.platform.request("led_pins")
- #my_led_pin = self.platform.request(0, Pins("P3:0"))
- self.submodules.led = gpio.GPIOOut(io_led_pins)
- self.csr_devices.append("my_led_pins")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement