readthedocs error

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
broo0ose
Posts: 1
Joined: Tue Apr 05, 2016 7:38 am

readthedocs error

Post by broo0ose » Tue Dec 28, 2021 7:27 pm

Hi,

I think there's an error on this page:
https://docs.micropython.org/en/latest/ ... d1306.html

These lines:
display.rect(10, 10, 107, 43, 1) # draw a rectangle outline 10,10 to 117,53, colour=1
display.fill_rect(10, 10, 107, 43, 1) # draw a solid rectangle 10,10 to 117,53, colour=1

Should be:
display.rect(10, 10, 107, 43, 1) # draw a rectangle outline starting at 10,10 length 117 height 53, colour=1
display.fill_rect(10, 10, 107, 43, 1) # draw a solid rectangle starting at 10,10 length 117 height 53, colour=1

Thanks

Post Reply