Skip to content

Commit acf7ab6

Browse files
committed
fixing version issues
2 parents f929524 + b9f05b2 commit acf7ab6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

examples/DMXSerialFlow/DMXSerialFlow.ino

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// - - - - -
22
// DmxSerial - A hardware supported interface to DMX.
33
// DMXSerialFlow.ino: Sample DMX application for sending 60 DMX values.
4-
// Copyright (c) 2014 by Matthias Hertel, http://www.mathertel.de
4+
// Copyright (c) 2014-2015 by Matthias Hertel, http://www.mathertel.de
55
// This work is licensed under a BSD style license. See http://www.mathertel.de/License.aspx
66
//
77
// Documentation and samples are available at http://www.mathertel.de/Arduino
@@ -21,16 +21,13 @@ const int RedPin = 9; // PWM output pin for Red Light.
2121
const int GreenPin = 6; // PWM output pin for Green Light.
2222
const int BluePin = 5; // PWM output pin for Blue Light.
2323

24-
// The number of RGB pixels, RGB channels are transfered
25-
#define PIXELS 60
2624

2725
void setup(void)
2826
{
2927
// Serial.begin(57600); // only on Leonardo
3028
// Serial.println("DMXSerialFlow DMX Example");
3129

3230
DMXSerial.init(DMXController);
33-
// DMXSerial.init(DMXController, 4);
3431

3532
// Set the number of channels the controller will send
3633
// this call is not needed, because the DMXController extends the DMX packet length automatically when data is added.
@@ -84,7 +81,7 @@ void loop(void)
8481
// uncomment this line to have a scenario where DMX values are changed every 5 seconds
8582
// alpha &= 0xFF00;
8683

87-
for (int n = 0; n < PIXELS; n++) {
84+
for (int n = 0; n < 20; n++) {
8885
setChannelRGB (n*3+1, alpha + n*64);
8986
} // for
9087

@@ -98,4 +95,4 @@ void loop(void)
9895

9996

10097

101-
98+

examples/DmxSerialRecv/DmxSerialRecv.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// address 2 (green) -> PWM Port 6
66
// address 3 (blue) -> PWM Port 5
77
//
8-
// Copyright (c) 2011 by Matthias Hertel, http://www.mathertel.de
8+
// Copyright (c) 2011-2015 by Matthias Hertel, http://www.mathertel.de
99
// This work is licensed under a BSD style license. See http://www.mathertel.de/License.aspx
1010
//
1111
// Documentation and samples are available at http://www.mathertel.de/Arduino

0 commit comments

Comments
 (0)