Skip to content

Commit e6ec0be

Browse files
committed
examples,docs: ensure amaranth-boards is available as a dev dependency.
1 parent d27681b commit e6ec0be

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

docs/_code/led_blinker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def elaborate(self, platform):
1818

1919
return m
2020
# --- BUILD ---
21-
from amaranth_boards.icestick import *
21+
from amaranth_boards.icestick import ICEStickPlatform
2222

2323

2424
ICEStickPlatform().build(LEDBlinker(), do_program=True)

examples/board/01_blinky.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# using the platform default clock (and default reset, if any).
33

44
from amaranth import *
5-
from amaranth_boards.ice40_hx1k_blink_evn import *
5+
from amaranth_boards.ice40_hx1k_blink_evn import ICE40HX1KBlinkEVNPlatform
66

77

88
class Blinky(Elaboratable):

examples/board/02_domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# independently created in addition to the main "sync" domain.
44

55
from amaranth import *
6-
from amaranth_boards.ice40_hx1k_blink_evn import *
6+
from amaranth_boards.ice40_hx1k_blink_evn import ICE40HX1KBlinkEVNPlatform
77

88

99
class BlinkyWithDomain(Elaboratable):

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ docs = [
5757
"sphinx-rtd-theme~=1.2",
5858
"sphinx-autobuild",
5959
]
60+
examples = [
61+
"amaranth-boards @ git+https://github.com/amaranth-lang/amaranth-boards.git"
62+
]
6063

6164
[tool.pdm.scripts]
6265
test.composite = ["test-code", "test-docs"]

0 commit comments

Comments
 (0)