[PyGame] How to Display pygame on SSD1351 screen - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Game Development (https://python-forum.io/forum-11.html) +--- Thread: [PyGame] How to Display pygame on SSD1351 screen (/thread-22391.html) |
How to Display pygame on SSD1351 screen - kalihotname - Nov-11-2019 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 |