Comments on: MicroPython: SSD1306 OLED Display Scroll Functions and Draw Shapes (ESP32/ESP8266) https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 29 May 2022 08:08:56 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Harry Fakri https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-754320 Sun, 29 May 2022 08:08:56 +0000 https://randomnerdtutorials.com/?p=95428#comment-754320 How to scroll from right to left?

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-718771 Fri, 14 Jan 2022 18:37:08 +0000 https://randomnerdtutorials.com/?p=95428#comment-718771 In reply to SoggyCashew.

Hi.

To clear the screen use the fill() method as pass 0 as argument. (Sets all pixels to black):
oled.fill(0)
oled.show()

Learn more here: https://randomnerdtutorials.com/micropython-oled-display-esp32-esp8266/

Regards,
Sara

]]>
By: SoggyCashew https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-718748 Fri, 14 Jan 2022 17:11:49 +0000 https://randomnerdtutorials.com/?p=95428#comment-718748 In reply to Sara Santos.

Sara, i have sensors (moisture) as well and after placing code as you suggested my values never update but when i had it in the shell as print the values alway updated. How do i clear the OLED to update the values?

]]>
By: Frank https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-584163 Sun, 04 Apr 2021 09:25:50 +0000 https://randomnerdtutorials.com/?p=95428#comment-584163 How can you turn the screen content 180 deg?

]]>
By: Aldrin Santos https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-567001 Sat, 06 Mar 2021 01:15:52 +0000 https://randomnerdtutorials.com/?p=95428#comment-567001 In reply to Sara Santos.

Thank you!

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-566133 Thu, 04 Mar 2021 17:11:37 +0000 https://randomnerdtutorials.com/?p=95428#comment-566133 In reply to Aldrin Santos.

Hi.
Double check the I2C connections to the OLEd display.
Regards,
Sara

]]>
By: Aldrin Santos https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-565732 Thu, 04 Mar 2021 00:27:07 +0000 https://randomnerdtutorials.com/?p=95428#comment-565732 Hello,
I’m getting error message:
Traceback (most recent call last):
File “”, line 15, in
File “ssd1306.py”, line 110, in init
File “ssd1306.py”, line 36, in init
File “ssd1306.py”, line 71, in init_display
File “ssd1306.py”, line 115, in write_cmd
OSError: [Errno 110] ETIMEDOUT
I remember it used to run without problem the first time. I did not change anything in the code. Please help. Thanks.

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-444364 Wed, 08 Apr 2020 09:39:00 +0000 https://randomnerdtutorials.com/?p=95428#comment-444364 In reply to Al heffez.

Hi.
You just need to insert your variables in the content of the rows. For example:

while True:
temp = randint(1,20)
hum = randint (50, 100)

screen1_row1 = “Temperature: ” + str(temp)
screen1_row2 = “Humidity: ” + str(hum)

screen1 = [[0, 0 , screen1_row1], [0, 16, screen1_row2], [0, 32, screen1_row3]]

# Scroll in, stop, scroll out (horizontal)
scroll_in_screen(screen1)
sleep(2)
scroll_out_screen(4)

In this case, the temperature and humidity are random numbers, they should be replaced with the actual values.
As you can see, you just need to insert the variables in the content of the rows, and then, create the screen list.

I hope this is clear.
Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-444357 Wed, 08 Apr 2020 09:15:18 +0000 https://randomnerdtutorials.com/?p=95428#comment-444357 In reply to Domenico.

You’re welcome!
😀

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-ssd1306-oled-scroll-shapes-esp32-esp8266/#comment-444352 Wed, 08 Apr 2020 09:07:36 +0000 https://randomnerdtutorials.com/?p=95428#comment-444352 In reply to Laurent Strodiot.

Hi.
Thanks great!
Thanks for following our work.
Regards,
Sara

]]>