Skip to content

Commit 4e94d6c

Browse files
authored
Fix remaining ruggeduino references in code snippets
1 parent 0896a2e commit 4e94d6c

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

images/content/kit/kit_assembly.svg

Lines changed: 1 addition & 1 deletion
Loading

programming/cheat_sheet.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,42 +202,42 @@ for marker in markers:
202202
### Setting the mode of a pin
203203

204204
~~~~~ python
205-
robot.ruggeduino.pins[4].mode = OUTPUT
206-
robot.ruggeduino.pins[4].mode = INPUT
207-
robot.ruggeduino.pins[4].mode = INPUT_PULLUP
205+
robot.arduino.pins[4].mode = OUTPUT
206+
robot.arduino.pins[4].mode = INPUT
207+
robot.arduino.pins[4].mode = INPUT_PULLUP
208208
~~~~~
209209

210210
### Digital Write
211211

212212
You can set the output for a pin of the Arduino:
213213

214214
~~~~~ python
215-
robot.ruggeduino.pins[2].mode = OUTPUT
215+
robot.arduino.pins[2].mode = OUTPUT
216216

217-
robot.ruggeduino.pins[2].digital_write(True)
218-
robot.ruggeduino.pins[2].digital_write(False)
217+
robot.arduino.pins[2].digital_write(True)
218+
robot.arduino.pins[2].digital_write(False)
219219
~~~~~
220220

221221
### Digital Read
222222

223223
You can read a digital value from the pins of the Arduino:
224224

225225
~~~~~ python
226-
robot.ruggeduino.pins[3].mode = INPUT
227-
robot.ruggeduino.pins[5].mode = INPUT_PULLUP
226+
robot.arduino.pins[3].mode = INPUT
227+
robot.arduino.pins[5].mode = INPUT_PULLUP
228228

229-
value = robot.ruggeduino.pins[3].digital_read()
230-
value = robot.ruggeduino.pins[5].digital_read()
229+
value = robot.arduino.pins[3].digital_read()
230+
value = robot.arduino.pins[5].digital_read()
231231
~~~~~
232232

233233
### Analogue Read
234234

235235
You can read an analogue value from the analogue pins of the Arduino:
236236

237237
~~~~~ python
238-
robot.ruggeduino.pins[A0].mode = INPUT
238+
robot.arduino.pins[A0].mode = INPUT
239239

240-
value = robot.ruggeduino.pins[A0].analogue_read()
240+
value = robot.arduino.pins[A0].analogue_read()
241241
~~~~~
242242

243243
## Metadata

resources/kit/arduino-fw.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Arduino.h>
22

3-
// We communicate with the ruggeduino at 115200 baud.
3+
// We communicate with the Arduino at 115200 baud.
44
#define SERIAL_BAUD 115200
55

66
#define FW_VER 1

0 commit comments

Comments
 (0)