Sphinx logo on OLED 128x64 SH1107 screen

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tbroad
 
Posts: 3
Joined: Tue Dec 02, 2014 7:37 pm

Sphinx logo on OLED 128x64 SH1107 screen

Post by tbroad »

from an absolute noob to CircuitPython ...
I'm using a Feather 128x64 OLED as a monitor screen on a Feather RP2040 for a GPS module. I'm just printing character data. The display has a small "sphinx logo" on the left edge of the screen and I cannot figure out how to eliminate it. I have used the sample test code and it runs fine, though apparently it is simply overwriting the "sphinx logo," because if I remove the
while True:
pass
at the end of the program, the sphinx comes back with the "Code done running" message.

I see in the CircuitPython docs (https://circuitpython.readthedocs.io/pr ... t/api.html) a reference to a "sphinx MockObject" in the display_offset, but adding "display_offset=0" makes no difference.

QUESTION: How do I eliminate display of this "sphinx logo"?

Here is my setup code:
import time
import board
import busio
import displayio
import adafruit_displayio_sh1107
import adafruit_gps

displayio.release_displays()
# oled_reset = board.D9

# Use for I2C
display_i2c = board.I2C()
display_bus = displayio.I2CDisplay(display_i2c, device_address=0x3C)

# SH1107 is vertically oriented 64x128
WIDTH = 128
HEIGHT = 64
BORDER = 2

display = adafruit_displayio_sh1107.SH1107(
display_bus, width=WIDTH, height=HEIGHT, rotation=0, display_offset=0
)

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: Sphinx logo on OLED 128x64 SH1107 screen

Post by tannewt »

The icon in the top left of the display is the CircuitPython mascot Blinka. We don't currently have a way to turn it off when the terminal is displaying. You can set the display to something else and it will go away.

User avatar
tbroad
 
Posts: 3
Joined: Tue Dec 02, 2014 7:37 pm

Re: Sphinx logo on OLED 128x64 SH1107 screen

Post by tbroad »

Thank you for your response. Good to know that I'm not totally inept in trying to remove Blinka.
Could you please be more specific (maybe an example) about "You can set the display to something else and it will go away."
Thanks.

User avatar
nerna
 
Posts: 5
Joined: Wed Jan 04, 2017 8:49 pm

Re: Sphinx logo on OLED 128x64 SH1107 screen

Post by nerna »

The example code for sh1107, which you probably already ran, shows various ways to display text and draw objects to screen using displayio (which removes blinka logo from the corner):

https://github.com/adafruit/Adafruit_Ci ... pletest.py

This guide also has some good examples of using displayio:
https://learn.adafruit.com/circuitpytho ... o/examples

Here's a simple example doing nothing particularly interesting (but no blinka logo):

Code: Select all

import board
import displayio
import terminalio
import time

# can try import bitmap_label below for alternative
from adafruit_display_text import label
import adafruit_displayio_sh1107

displayio.release_displays()
# oled_reset = board.D9

# Use for I2C
i2c = board.I2C()
display_bus = displayio.I2CDisplay(i2c, device_address=0x3C)

# SH1107 is vertically oriented 64x128
WIDTH = 128
HEIGHT = 64
BORDER = 2

display = adafruit_displayio_sh1107.SH1107(
    display_bus, width=WIDTH, height=HEIGHT, rotation=0
)

text2 = "SH1107"
text_area2 = label.Label(
    terminalio.FONT, text=text2, scale=2, color=0xFFFFFF, x=9, y=44
)
display.show(text_area2)

while True:
    for i in range(100):
        text_area2.text = "# %d" % i
        time.sleep(1)
Cheers!

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”