Python Forum
[PyGame] How to Display pygame on SSD1351 screen
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] How to Display pygame on SSD1351 screen
#1
I want to move this code into raspberry pi and run it's with OLED SSD1351

could I have some examples that runs pygame on OLED screen?

    
    screen.fill((0,0,0)) # fill the screen with white
    bird.draw(screen) # draw the bird to the screen
    pygame.draw.rect(screen,white,[64, 0, 5, 130])
    pygame.draw.rect(screen,gray,[68,0,2,130])
    pygame.display.update() # update the screen

    clock.tick(40)
thankyou Big Grin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pygame full screen help corsasri 2 2,743 Mar-20-2024, 07:35 AM
Last Post: reginarodriguez
  [PyGame] Pygame display problem video game Paul_Maillet 1 614 Feb-20-2024, 07:50 PM
Last Post: Bronjer
  [PyGame] Cannot display anything inside pygame window the_gullwing 5 1,029 Dec-07-2023, 02:44 AM
Last Post: Benixon
  [PyGame] When I hit the space bar from the home screen, it sends me to the game over screen JesusisKing 1 954 Apr-30-2023, 10:11 PM
Last Post: deanhystad
  [split] How to display isometric maps with pygame? mattwins 6 6,143 Nov-17-2020, 12:54 PM
Last Post: mattwins
  [PyGame] Pygame : clearing a screen issue Reldaing 4 6,032 Jun-23-2020, 09:10 AM
Last Post: JudyLarose
  [PyGame] pygame.draw.rect function stretches across the screen instead of moving BubblesTheGiraffe 2 3,578 Jun-11-2019, 08:32 PM
Last Post: metulburr
  [PyGame] Copying the Screen (PyGame) Zman350x 4 5,085 Feb-11-2017, 08:26 PM
Last Post: Zman350x

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020