Преглед на файлове

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

MrCypher преди 10 месеца
родител
ревизия
16a763147f
променени са 4 файла, в които са добавени 10 реда и са изтрити 2 реда
  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 @@
-