Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. my_led_pins = [
  2. ("led_pins", 0, Pins("P3:2"), IOStandard("LVCMOS33")),
  3. ("led_pins", 1, Pins("P3:3"), IOStandard("LVCMOS33")),
  4. ]
  5.  
  6. self.platform.add_extension(my_led_pins)
  7. io_led_pins = self.platform.request("led_pins")
  8. io_led_pins += self.platform.request("led_pins")
  9.  
  10. #my_led_pin = self.platform.request(0, Pins("P3:0"))
  11. self.submodules.led = gpio.GPIOOut(io_led_pins)
  12. self.csr_devices.append("my_led_pins")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement