adjusted display size for pygame
This commit is contained in:
parent
f0f846dc04
commit
5e7f228869
|
@ -1,11 +1,15 @@
|
||||||
import socket
|
import socket
|
||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
rc_socket = socket.socket()
|
|
||||||
rc_socket.connect(('192.168.4.1', 1234)) # connect to robot
|
|
||||||
|
|
||||||
pygame.init()
|
pygame.init()
|
||||||
pygame.display.set_mode()
|
pygame.display.set_mode((640, 480))
|
||||||
|
|
||||||
|
rc_socket = socket.socket()
|
||||||
|
try:
|
||||||
|
rc_socket.connect(('192.168.4.1', 1234)) # connect to robot
|
||||||
|
except socket.error:
|
||||||
|
print("could not connect to socket")
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
events = pygame.event.get()
|
events = pygame.event.get()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user