Bird
0
0

You wrote this code to display 'Hello' on the OLED but nothing appears:

medium📝 Debug Q14 of 15
Raspberry Pi - Display and Output
You wrote this code to display 'Hello' on the OLED but nothing appears:
oled.text('Hello', 10, 10)
oled.fill(0)
oled.show()
What is the problem?
ACoordinates (10,10) are outside the display range
BCalling fill(0) after text() clears the buffer
CMissing oled.init() before drawing
DText string must be uppercase
Step-by-Step Solution
Solution:
  1. Step 1: Check the order of commands

    Text is drawn first, then fill(0) clears the buffer, erasing the text.
  2. Step 2: Understand correct sequence

    Clear buffer first with fill(0), then draw text, then call show().
  3. Final Answer:

    Calling fill(0) after text() clears the buffer -> Option B
  4. Quick Check:

    Clear after draw erases text [OK]
Quick Trick: Clear buffer before drawing, not after [OK]
Common Mistakes:
MISTAKES
  • Thinking coordinates are invalid
  • Assuming init() is needed every time
  • Believing text case matters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes