Skip to content

Commit 752e5c6

Browse files
committed
Update comments.
1 parent 97fc5e5 commit 752e5c6

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

examples/Actuators/GenericPWMOutput/GenericPWMOutput.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Steps:
1010
2. Select a virtual channel number.
1111
3. Select a slider widget.
1212
4. Set the slider widget min value to 0 and max value to 255.
13-
5. Set VIRTUAL_CHANNEL to the virtual channel number you selected.
13+
5. Set the VIRTUAL_CHANNEL value below to the virtual channel number you selected.
1414
6. Attach an output device to a digital PWM pin (3, 5, 6, 9, 10, and 11 on most Arduino boards).
15-
7. Set ACTUATOR_PIN to the digital PWM pin number you selected.
15+
7. Set the ACTUATOR_PIN value below to the digital PWM pin number you selected.
1616
8. Set the Cayenne authentication info to match the authentication info from the Dashboard.
1717
9. Compile and upload this sketch.
1818
10. Once the Arduino connects to the Dashboard you can use the slider to change PWM values.

examples/Actuators/Luminosity/Luminosity.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Steps:
1010
2. Select a virtual channel number.
1111
3. Select a slider widget.
1212
4. Set the slider widget min value to 0 and max value to 255.
13-
5. Set VIRTUAL_CHANNEL to the virtual channel number you selected.
13+
5. Set the VIRTUAL_CHANNEL value below to the virtual channel number you selected.
1414
6. Connect the LED's legs to GND and to a PWM pin (3, 5, 6, 9, 10, and 11 on most Arduino boards).
1515
Use a 1k resistor if possible.
1616
Schematic:
1717
[Ground] -- [LED] -- [1k-resistor] -- [PWM Pin]
18-
7. Set ACTUATOR_PIN to the digital PWM pin number you selected.
18+
7. Set the ACTUATOR_PIN value below to the digital PWM pin number you selected.
1919
8. Set the Cayenne authentication info to match the authentication info from the Dashboard.
2020
9. Compile and upload this sketch.
2121
10. Once the Arduino connects to the Dashboard you can use the slider to change LED brightness.

examples/Actuators/MotorSwitch/MotorSwitch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Steps:
1414
2. Select a virtual channel number for the widget.
1515
3. Set the VIRTUAL_CHANNEL value below to the virtual channel you selected.
1616
4. Set up your motor schematic and attach it to a PWM pin (3, 5, 6, 9, 10, and 11 on most Arduino boards).
17-
5. Set ACTUATOR_PIN to the PWM pin number you selected.
17+
5. Set the ACTUATOR_PIN value below to the PWM pin number you selected.
1818
6. Set the Cayenne authentication info to match the authentication info from the Dashboard.
1919
7. Compile and upload this sketch.
2020
8. Once the Arduino connects to the Dashboard you can use the widget button to turn the motor on and off.

examples/Actuators/RelaySwitch/RelaySwitch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Steps:
1010
2. Select a virtual channel number for the widget.
1111
3. Set the VIRTUAL_CHANNEL value below to the virtual channel you selected.
1212
4. Connect your relay switch to a digital pin.
13-
5. Set ACTUATOR_PIN to the digital pin number you selected.
13+
5. Set the ACTUATOR_PIN value below to the digital pin number you selected.
1414
6. Set the Cayenne authentication info to match the authentication info from the Dashboard.
1515
7. Compile and upload this sketch.
1616
8. Once the Arduino connects to the Dashboard you can use the widget button to turn the relay switch on and off.

examples/Actuators/ServoMotor/ServoMotor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Steps:
1212
4. Set min value to 0 and max value to 1.
1313
5. Set the VIRTUAL_CHANNEL value below to the virtual channel you selected.
1414
6. Connect the Servo's legs to GND, VCC (5.0), and a digital pin.
15-
7. Set ACTUATOR_PIN to the pin number you selected.
15+
7. Set the ACTUATOR_PIN value below to the digital pin number you selected.
1616
8. Set the Cayenne authentication info to match the authentication info from the Dashboard.
1717
9. Compile and upload this sketch.
1818
10. Once the Arduino connects to the Dashboard you can use the slider to change the servo position.

examples/Actuators/ValveSwitch/ValveSwitch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Steps:
1515
2. Select a virtual channel number for the widget.
1616
3. Set the VIRTUAL_CHANNEL value below to virtual channel you selected.
1717
4. Set up your valve schematic and attach it to a digital pin.
18-
5. Set ACTUATOR_PIN to the digital pin number you selected.
18+
5. Set the ACTUATOR_PIN value below to the digital pin number you selected.
1919
6. Set the Cayenne authentication info to match the authentication info from the Dashboard.
2020
7. Compile and upload this sketch.
2121
8. Once the Arduino connects to the Dashboard you can use the widget button to open and close the valve.

examples/CustomWidgets/SliderWidget/SliderWidget.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Steps:
99
1. In the Cayenne Dashboard add a new Slider Custom Widget.
1010
2. Select a virtual channel number.
1111
3. Set the slider widget min value to 0 and max value to 255.
12-
4. Set VIRTUAL_CHANNEL to the virtual channel number you selected.
12+
4. Set the VIRTUAL_CHANNEL value below to the virtual channel number you selected.
1313
5. Attach an output device to a digital PWM pin (3, 5, 6, 9, 10, and 11 on most Arduino boards).
14-
6. Set ACTUATOR_PIN to the digital PWM pin number you selected.
14+
6. Set the ACTUATOR_PIN value below to the digital PWM pin number you selected.
1515
7. Set the Cayenne authentication info to match the authentication info from the Dashboard.
1616
8. Compile and upload this sketch.
1717
9. Once the Arduino connects to the Dashboard you can use the slider to change PWM values.

examples/CustomWidgets/TwoStateWidget/TwoStateWidget.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ char password[] = "MQTT_PASSWORD";
2424
char clientID[] = "CLIENT_ID";
2525

2626
#define VIRTUAL_CHANNEL 1
27-
#define SENSOR_PIN 0
27+
#define SENSOR_PIN 5 // Do not use digital pins 0 or 1 since those conflict with the use of Serial.
2828

2929
void setup()
3030
{

examples/Sensors/GenericDigitalInput/GenericDigitalInput.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ char username[] = "MQTT_USERNAME";
2323
char password[] = "MQTT_PASSWORD";
2424
char clientID[] = "CLIENT_ID";
2525

26-
#define SENSOR_PIN 0
26+
#define SENSOR_PIN 5 // Do not use digital pins 0 or 1 since those conflict with the use of Serial.
2727
#define VIRTUAL_CHANNEL 1
2828

2929
void setup()

0 commit comments

Comments
 (0)