Skip to content

Commit

Permalink
fixing version issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mathertel committed Feb 3, 2016
2 parents f929524 + b9f05b2 commit acf7ab6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions examples/DMXSerialFlow/DMXSerialFlow.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// - - - - -
// DmxSerial - A hardware supported interface to DMX.
// DMXSerialFlow.ino: Sample DMX application for sending 60 DMX values.
// Copyright (c) 2014 by Matthias Hertel, http://www.mathertel.de
// Copyright (c) 2014-2015 by Matthias Hertel, http://www.mathertel.de
// This work is licensed under a BSD style license. See http://www.mathertel.de/License.aspx
//
// Documentation and samples are available at http://www.mathertel.de/Arduino
Expand All @@ -21,16 +21,13 @@ const int RedPin = 9; // PWM output pin for Red Light.
const int GreenPin = 6; // PWM output pin for Green Light.
const int BluePin = 5; // PWM output pin for Blue Light.

// The number of RGB pixels, RGB channels are transfered
#define PIXELS 60

void setup(void)
{
// Serial.begin(57600); // only on Leonardo
// Serial.println("DMXSerialFlow DMX Example");

DMXSerial.init(DMXController);
// DMXSerial.init(DMXController, 4);

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

for (int n = 0; n < PIXELS; n++) {
for (int n = 0; n < 20; n++) {
setChannelRGB (n*3+1, alpha + n*64);
} // for

Expand All @@ -98,4 +95,4 @@ void loop(void)





2 changes: 1 addition & 1 deletion examples/DmxSerialRecv/DmxSerialRecv.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// address 2 (green) -> PWM Port 6
// address 3 (blue) -> PWM Port 5
//
// Copyright (c) 2011 by Matthias Hertel, http://www.mathertel.de
// Copyright (c) 2011-2015 by Matthias Hertel, http://www.mathertel.de
// This work is licensed under a BSD style license. See http://www.mathertel.de/License.aspx
//
// Documentation and samples are available at http://www.mathertel.de/Arduino
Expand Down

0 comments on commit acf7ab6

Please sign in to comment.