Skip to content

Commit 50f5dcc

Browse files
Update README.rst
In the example code: 1. `D2` was imported twice as a typo. `D3` was meant to be imported in place of the mistaken second import of `D2`. 2. `time.sleep(2)` on the last line was mistakenly tabbed out of the scope of the infinite loop. The code would thus be unreachable making the command of filling the screen with blue too fast.
1 parent 12cbadb commit 50f5dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Usage Example
3636
3737
import busio
3838
import digitalio
39-
from board import SCK, MOSI, MISO, D2, D2
39+
from board import SCK, MOSI, MISO, D2, D3
4040
4141
from adafruit_rgb_display import color565
4242
import adafruit_rgb_display.ili9341 as ili9341
@@ -64,7 +64,7 @@ Usage Example
6464
# Clear the screen blue.
6565
display.fill(color565(0, 0, 255))
6666
# Pause 2 seconds.
67-
time.sleep(2)
67+
time.sleep(2)
6868
6969
API Reference
7070
=============

0 commit comments

Comments
 (0)