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