Hi everyone !
I’m actually working on a DIY DMX Shield and I’ve builded the wiring with this schematic:
http://playground.arduino.cc/DMX/DMXShield
I use Concepticonics lib for Arduino.
It compiles when I want to upload my code on a Arduino Uno, but it can’t with an Attiny45.
There is the latest error (there is around 25 errors) :
/root/sketchbook/libraries/Conceptinetics/Conceptinetics.cpp:1171:28: error: ‘DMX_FE’ was not declared in this scope
if ( usart_state & (1<<DMX_FE) )
^
How to declare DMX_FE & DMX_UCSRB and all constants not defined ?
There is my .ino:
#include <Conceptinetics.h>
#include <Rdm_Defines.h>
#include <Rdm_Uid.h>
#define DMX_MASTER_CHANNELS 100
#define RXEN_PIN 3
DMX_Master dmx_master(DMX_MASTER_CHANNELS, RXEN_PIN);
int channel = 0;
void setup()
{
dmx_master.enable();
dmx_master.setChannelRange(2, 25, 127);
digitalWrite(12, HIGH);
pinMode(12, OUTPUT);
}
void loop()
{
static int dimmer_val;
while(dimmer_val <= 100)
dmx_master.setChannelValue(channel, dimmer_val++);
channel ++;
dimmer_val = 0;
delay(100);
}
Thanks a lot.
Damien.