Browse Source

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

MrCypher 7 months ago
parent
commit
16a763147f
4 changed files with 10 additions and 2 deletions
  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")
     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
 
 if currentScore < highestScore :
     highestScore = currentScore
+    f = open("scores.txt", "rw")
+    f.write(highestScore)
+
 
 async def main():
     await connect()

+ 0 - 0
pyBLE.py


+ 0 - 0
scores.txt


+ 0 - 1
sdfghfds

@@ -1 +0,0 @@
-