Skip to content

Commit 83aece3

Browse files
bwhitmanclaude
andauthored
docs: add set_display_rotation, hline, vline to accessories page (#1075)
Document the recently added amyboard.set_display_rotation(90) and the display.hline()/display.vline() drawing primitives in the Displays section of docs/amyboard/accessories.md. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 45ce320 commit 83aece3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/amyboard/accessories.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@ amyboard.display_refresh()
5454

5555
# Draw shapes
5656
amyboard.display.fill_rect(10, 40, 50, 20, 200)
57+
amyboard.display.hline(0, 70, 128, 255) # horizontal line: x, y, width, color
58+
amyboard.display.vline(64, 0, 128, 255) # vertical line: x, y, height, color
5759
amyboard.display_refresh()
5860

61+
# Rotate the OLED (sh1107 only). One of 0, 90, 180, 270 degrees.
62+
# The setting is saved and re-applied automatically on every boot.
63+
amyboard.set_display_rotation(90)
64+
5965
# Show a live waveform visualization
6066
amyboard.draw_waveform()
6167
```

0 commit comments

Comments
 (0)