Explorar el Código

created pyBLE to transfoer BLE code, created varibles and function to check the current score and compute the power level

MrCypher hace 10 meses
padre
commit
16a763147f
Se han modificado 4 ficheros con 10 adiciones y 2 borrados
  1. 10 1
      GUI.py
  2. 0 0
      pyBLE.py
  3. 0 0
      scores.txt
  4. 0 1
      sdfghfds

+ 10 - 1
GUI.py

@@ -23,11 +23,20 @@ async def connect():
             print("could not find device")
             print("could not find device")
     return target_address
     return target_address
 
 
-currentScore = 30
+#function that will recive the ESP32 data 
+def getCurrentScore():
+    print(30)
+    #than do math to figure out power level
+
+
+currentScore = getCurrentScore()
 highestScore = 0
 highestScore = 0
 
 
 if currentScore < highestScore :
 if currentScore < highestScore :
     highestScore = currentScore
     highestScore = currentScore
+    f = open("scores.txt", "rw")
+    f.write(highestScore)
+
 
 
 async def main():
 async def main():
     await connect()
     await connect()

+ 0 - 0
pyBLE.py


+ 0 - 0
scores.txt


+ 0 - 1
sdfghfds

@@ -1 +0,0 @@
-