Skip to content

Commit

Permalink
Invert LEDResource, because FPGA pin controls the cathode.
Browse files Browse the repository at this point in the history
  • Loading branch information
bl0x committed Apr 19, 2023
1 parent 3e68953 commit 9c90b3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amaranth_boards/tang_nano_9k.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class TangNano9kPlatform(GowinPlatform):
# Pins 5 to 8 are JTAG (TMS, TCK, TDI, TDO) from BL702

# Pin 12 is VCC03_1V8
*LEDResources(pins="10 11 13 14 15 16",
# LEDs are connected to 1V8, pins pull cathode to GND, when low
*LEDResources(pins="10 11 13 14 15 16", invert=True,
attrs=Attrs(IO_TYPE="LVCMOS33")),

# Connects to BL702 UART1
Expand Down

0 comments on commit 9c90b3f

Please sign in to comment.