فهرست منبع

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 @@
-