Python Forum

Full Version: How to Display pygame on SSD1351 screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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