@@ -78,11 +78,10 @@ In this tutorial, you will find useful information to get started, test, and mai
78
78
- [ Functions] ( #functions-1 )
79
79
- [ Example Usage] ( #example-usage-3 )
80
80
- [ LEDs] ( #leds )
81
- - [ Example] ( #example )
81
+ - [ Example] ( #example )
82
82
- [ Talking with other Machines!] ( #talking-with-other-machines )
83
83
- [ WiFi] ( #wifi )
84
84
- [ Instructions] ( #instructions )
85
- - [ Code Explanation] ( #code-explanation )
86
85
- [ Connecting to Wi-Fi] ( #connecting-to-wi-fi )
87
86
- [ Initializing the Robot] ( #initializing-the-robot )
88
87
- [ Setting Up the Web Server] ( #setting-up-the-web-server )
@@ -1076,7 +1075,7 @@ The Arduino Alvik robot comes equipped with two RGB LEDs that can be controlled
1076
1075
- ` green ` : Intensity of the green component (0 or 1)
1077
1076
- ` blue ` : Intensity of the blue component (0 or 1)
1078
1077
1079
- ### Example
1078
+ #### Example
1080
1079
1081
1080
Here's an example sketch that cycles through different colors on both LEDs:
1082
1081
@@ -1126,8 +1125,6 @@ The provided code will:
1126
1125
3 . Connect to the robot's IP address (printed on the console) using a web browser.
1127
1126
4 . Use the web interface to control the robot's movement.
1128
1127
1129
- ### Code Explanation
1130
-
1131
1128
#### Connecting to Wi-Fi
1132
1129
1133
1130
The following code connects the ESP32 to a specified Wi-Fi network using the provided SSID and password.
@@ -1354,7 +1351,7 @@ while True:
1354
1351
1355
1352
### Sending Commands from Another ESP32 Device
1356
1353
1357
- The following code can be used on another ESP32 device to send commands to the Alvik robot.
1354
+ The following code can be used on another Alvik to send commands to the Alvik robot.
1358
1355
1359
1356
``` python
1360
1357
from arduino_alvik import ArduinoAlvik
@@ -1516,10 +1513,12 @@ The servo motors connectors are placed at the back of Alvik, in this tutorial we
1516
1513
from arduino_alvik import ArduinoAlvik
1517
1514
import time
1518
1515
1516
+ # Initialize Alvik
1519
1517
alvik = ArduinoAlvik()
1520
1518
alvik.begin()
1521
1519
1522
1520
while True :
1521
+ # Moves servo
1523
1522
alvik.set_servo_positions(0 ,0 )
1524
1523
time.sleep(2 )
1525
1524
alvik.set_servo_positions(90 ,0 )
0 commit comments