Skip to content
Snippets Groups Projects
Commit 77bf383b authored by Václav Jelínek's avatar Václav Jelínek
Browse files

Change robots class bt serial program

parent 11c5ebcf
No related branches found
No related tags found
1 merge request!12Major update of menu visuals and example programs
Pipeline #106306 failed
'''
Simple example program for the Open-Cube BT Serial communication.
Simple example program for the Open-Cube BT Serial communication. Pair your device with Open-Cube while in menu first.
'''
# Import libraries
import time
......@@ -19,7 +19,7 @@ while True:
print(a, b, c)
# Send data to DataPlotter
buffer = "$$P" + str(send_data) + "," + str(-send_data) + ";"
buffer = "$$P-," + str(send_data) + "," + str(-send_data) + ";"
robot.esp.bt_write(buffer)
send_data += 0.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment