From 809d2e43fff89838fb5e7f0163776bfac74131aa Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Tue, 12 Sep 2017 03:10:02 +0200 Subject: [PATCH] Remove some unused variables --- raspi/pySejf.py | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/raspi/pySejf.py b/raspi/pySejf.py index 95a5407..c289e9f 100644 --- a/raspi/pySejf.py +++ b/raspi/pySejf.py @@ -11,12 +11,10 @@ import socket import json logging.basicConfig(level=logging.INFO) -import random, math, pygame +import random, pygame from pygame.locals import * -from virtualKeyboard import VirtualKeyboard import threading -from math import cos import time import RPi.GPIO as GPIO @@ -241,7 +239,6 @@ GPIO.output(PIN_SUC10, 1) GPIO.output(PIN_RELAY, 1) WINSIZEX, WINSIZEY = 900, 680 -counter = 0 timeSec = 0 UP = 1 DOWN = 3 @@ -469,32 +466,10 @@ MINY = 100 MAXY = WINSIZEY - MINY -SNAKESTEP = 20 -TRUE = 1 -FALSE = 0 - - ######## VARIABLES -direction = RIGHT # 1=up,2=right,3=down50,4=left -snakexy = [300,400] -snakelist = [[300,400],[280,400],[260,400]] -counter = 0 -score = 0 -appleonscreen = 0 -applexy = [0,0] -newdirection = RIGHT -snakedead = FALSE -gameregulator = 6 -gamepaused = 0 -growsnake = 0 # added to grow tail by two each time -snakegrowunit = 2 # added to grow tail by two each time clock = pygame.time.Clock() screen = pygame.display.set_mode(WINSIZE, pygame.NOFRAME) pygame.display.set_caption('PozySejf') -dynamoValSPI = [0,0,0] -dynamoRectY = [50, 50, 50] -dynamoRectX = 50 -dynamoXpos = [-100, 0, 100] ############# old main @@ -505,7 +480,6 @@ def main(): passwordLetter = '' startonce = 0 - showstartscreen = 0 while startonce == 0: startonce = 0