From 105bfdf1d7fe9746c9e4e3f134dae6317285680f Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Sat, 13 Jan 2018 15:19:58 +0100 Subject: [PATCH] debugging --- .idea/workspace.xml | 8 ++++---- main.py | 11 +---------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index aabc607..0a19557 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -29,8 +29,8 @@ - - + + @@ -466,8 +466,8 @@ - - + + diff --git a/main.py b/main.py index ef20f52..81d4c25 100644 --- a/main.py +++ b/main.py @@ -13,34 +13,24 @@ configuration = { def main(): navigator = hardwarelib.Navigator(16) - print('navigator created') light = hardwarelib.Light(15) - print('light created') ultrasonic = hardwarelib.Ultrasonic(11,7) - print('ultrasonic created') temperature = hardwarelib.Temperature() - print('temperature created') camera = graphiclib.PiCamera((500, 0), (500, 1000)) - print('camera created') jstick = controllib.Joystick(navigator, light, configuration, camera) - print('joystic created') #pygame stuff screen = graphiclib.Screen(size=(1000,1000)) - print('created screen') all_sprites = pygame.sprite.RenderUpdates() list = graphiclib.List((0,0),(500,1000)) all_sprites.add(list) all_sprites.add(camera) clock = pygame.time.Clock() running = True - print('in running loop') while running: clock.tick(25) - print('waited some time') for event in pygame.event.get(): - print(event) if event.type == pygame.QUIT: print('quit event') running = False @@ -48,6 +38,7 @@ def main(): dict = jstick.handle() print('joystick handled') list.set_dict(dict) + print('list has dict') all_sprites.update() print('updating sprites') update_rects = all_sprites.draw(screen.screen)