Skip to content

Commit

Permalink
Get tests working.
Browse files Browse the repository at this point in the history
  • Loading branch information
corranwebster committed Oct 21, 2024
1 parent 67668de commit 0ca0eeb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 11 additions & 1 deletion examples/polar_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
]),
Repeat(grey_e),
fill=False,
clip=(0, 0, 320, 240),
)
surface.add_shape('UNDERLAY', circle_grid)
ray_grid = Lines(
Expand All @@ -44,6 +45,7 @@
Repeat(60),
])),
Repeat(grey_e),
clip=(0, 0, 320, 240),
)
surface.add_shape('UNDERLAY', ray_grid)
coxcomb = Polygons(
Expand All @@ -54,6 +56,7 @@
Repeat(60)
])),
Interpolated(viridis, 6),
clip=(0, 0, 320, 240),
)
surface.add_shape('DRAWING', coxcomb)

Expand All @@ -66,6 +69,7 @@
]),
Repeat(grey_e),
fill=False,
clip=(0, 0, 320, 240),
)
surface.add_shape('UNDERLAY', circle_grid)
ray_grid = Lines(
Expand All @@ -75,6 +79,7 @@
Repeat(60),
])),
Repeat(grey_e),
clip=(0, 0, 320, 240),
)
surface.add_shape('UNDERLAY', ray_grid)
radar = Polygons(
Expand All @@ -86,6 +91,7 @@
),
Interpolated(viridis, 6),
fill=False,
clip=(0, 0, 320, 240),
)
surface.add_shape('DRAWING', radar)
markers = Markers(
Expand All @@ -100,6 +106,7 @@
]),
Repeat(grey_3),
[f" {x}" for x in [6, 3, 9, 1, 9, 12]],
clip=(0, 0, 320, 240),
)
surface.add_shape('OVERLAY', markers)

Expand All @@ -111,6 +118,7 @@
[240, 320, 100],
]), decimation=6),
Interpolated(viridis, 3),
clip=(0, 0, 320, 240),
)
surface.add_shape('DRAWING', circle_bar)
circle_bar_ends = Circles(
Expand All @@ -123,6 +131,7 @@
]),
Interpolated(viridis, 3),
fill=True,
clip=(0, 0, 320, 240),
)
surface.add_shape('DRAWING', circle_bar_ends)

Expand All @@ -140,6 +149,7 @@
]), decimation=10),
Interpolated(viridis, 6),
fill=True,
clip=(0, 0, 320, 240),
)
surface.add_shape('DRAWING', donut)

Expand Down Expand Up @@ -172,7 +182,7 @@ async def init_display():
elif __name__ != '__test__':

# set up the display object
display = FileDisplay('lines.rgb565', (320, 240))
display = FileDisplay('polar.rgb565', (320, 240))
# refresh the display
with display:
display.clear()
Expand Down
Loading

0 comments on commit 0ca0eeb

Please sign in to comment.