From: Stuart Olsen Date: Sat, 14 Mar 2020 09:02:03 +0000 (-0700) Subject: resources.display: Apply inversion setting to dp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c330044cf388d613d7b82c4de0f41e0c7ecde72f;p=nmigen-boards.git resources.display: Apply inversion setting to dp --- diff --git a/nmigen_boards/resources/display.py b/nmigen_boards/resources/display.py index 43a5279..f145119 100644 --- a/nmigen_boards/resources/display.py +++ b/nmigen_boards/resources/display.py @@ -15,7 +15,7 @@ def Display7SegResource(*args, a, b, c, d, e, f, g, dp=None, invert=False, ios.append(Subsignal("f", Pins(f, dir="o", invert=invert, conn=conn, assert_width=1))) ios.append(Subsignal("g", Pins(g, dir="o", invert=invert, conn=conn, assert_width=1))) if dp is not None: - ios.append(Subsignal("dp", Pins(dp, dir="o", conn=conn, assert_width=1))) + ios.append(Subsignal("dp", Pins(dp, dir="o", invert=invert, conn=conn, assert_width=1))) if attrs is not None: ios.append(attrs) return Resource.family(*args, default_name="display_7seg", ios=ios)