error ahora antes no

tenia un código arduino para el display tm1638 y funcionaba de lujo , pero no se el motivo ahora me da error , que antes no daba, ya que lo tengo guardado de siempre así y funcionaba perfectamente,

como he formateado va todo bien pero al cargar el sketch me da el siguiente error :

Ar-SLI_0.6L_-RELEASE.ino: In function 'void Show_RPM_Leds()':
Ar-SLI_0.6L
-_RELEASE.ino:163: error: 'TM1638_COLOR_NONE' was not declared in this scope

si antes no ocurría que ha cambiado que ahora si ocurre?

sketch completo :

// Ar-SLI Arduino v0.6L
//
// Must be combined with the Ar-SLI Transmitter app.
//
// RCC (c) 2015 (151206)


#ifdef REVERSE
  #include <InvertedTM1638.h>
#else
  #include <TM1638.h>
#endif

const int DATA_PIN=8;
const int CLOCK_PIN=9;
const int STROBE_PIN=7;
const int BL_PIN=A0;

#ifdef REVERSE
   InvertedTM1638 module(DATA_PIN, CLOCK_PIN, STROBE_PIN);
#else
   TM1638 module(DATA_PIN, CLOCK_PIN, STROBE_PIN);
#endif

String inputString = "";
String DisplayString, DotString, LedString, LCDString1, LCDString2;
boolean stringComplete = false; 
int Page, Page1Switch, Page2Switch;
byte Button;

void setup() {

  Serial.begin(115200);
  Page=1;
  Page1Switch=1;
  Page2Switch=0;
  
  Test_Display();
  
}

void loop() 
{
  if (stringComplete) {     
    
    ParseBuffer(inputString);
    
    Button = module.getButtons();  
    if (Button!=0)
    {
      Serial.print(Button);
      delay(100);
    }
 
    Show_Display();
    Show_RPM_Leds();  
    
    inputString = "";
    stringComplete = false;    
  }  
}

void serialEvent() {
  
  while (Serial.available()) {

    char inChar = (char)Serial.read(); 
    inputString += inChar;  
    
    if (inChar == '\n') {
       stringComplete = true;   
    } 
  }
}

void ParseBuffer(String StrParse)
{
  
  int pos=0;
   
  pos=StrParse.indexOf('\n');
  StrParse = StrParse.substring(0,pos);
   
  // Leds
  pos=StrParse.indexOf(';');
  LedString = StrParse.substring(0,pos);
  
  // Segment Display
  StrParse = StrParse.substring(pos+1,StrParse.length());
  pos=StrParse.indexOf(';');
  DisplayString = StrParse.substring(0,pos);
  
  // Segment Dots
  StrParse = StrParse.substring(pos+1,StrParse.length());
  pos=StrParse.indexOf(';');
  DotString = StrParse.substring(0,pos);

  // LCD Line 1
  StrParse = StrParse.substring(pos+1,StrParse.length());
  pos=StrParse.indexOf(';');
  LCDString1 = StrParse.substring(0,pos);

  // LCD Line 2
  StrParse = StrParse.substring(pos+1,StrParse.length());
  pos=StrParse.indexOf(';');
  LCDString2 = StrParse.substring(0,pos);
  
  StrParse = StrParse.substring(pos+1,StrParse.length());
}

void Test_Display()
{
  module.clearDisplay(); 
  module.setDisplayToString("JUANCHIO",0,0);
  delay(1000);
  module.setLED(TM1638_COLOR_GREEN, 0);
  module.setLED(TM1638_COLOR_GREEN, 7);
  delay(100);
  module.setLED(TM1638_COLOR_GREEN, 1);
  module.setLED(TM1638_COLOR_GREEN, 6);
  delay(100);
  module.setLED(TM1638_COLOR_GREEN, 2);
  module.setLED(TM1638_COLOR_GREEN, 5);
  delay(100);
  module.setLED(TM1638_COLOR_GREEN, 3);
  module.setLED(TM1638_COLOR_GREEN, 4);
  delay(100);
  module.setLED(TM1638_COLOR_RED, 0);
  module.setLED(TM1638_COLOR_RED, 7);
  delay(100);
  module.setLED(TM1638_COLOR_RED, 1);
  module.setLED(TM1638_COLOR_RED, 6);
  delay(100);
  module.setLED(TM1638_COLOR_RED, 2);
  module.setLED(TM1638_COLOR_RED, 5);
  delay(100);
  module.setLED(TM1638_COLOR_RED, 3);
  module.setLED(TM1638_COLOR_RED, 4);
  delay(100);
  module.setLEDs(0x0000);

  delay(2000);
  
  module.clearDisplay();  
}

void Show_Display()
{ 
  int Dot = DotString.toInt();

  module.setDisplayToString(String(DisplayString),Dot,0); 
}

void Show_RPM_Leds ()
{
  String Led;

  for(int i = 0; i < 8; i++)  
  {
    Led = String(LedString[i]);
    
    if (Led == "0") {
      module.setLED(TM1638_COLOR_NONE, i);
    } else if (Led == "1") {
      module.setLED(TM1638_COLOR_GREEN, i);
    } else if (Led == "2") {
      module.setLED(TM1638_COLOR_RED, i);
    }
  }
}

solucionado , disculpen las molestias

Asi tiene que verse tu código

void setup(){
  codigo;
}

Usando tags haciendo clic en preview y luego en el primer botón </> que tiene esta forma.
Eso es para que se vea bien y también en cumplimiento de las normas de este foro.
De hay con respecto a rfactor2 no te puedo ayudar por ahora.

muchas gracias, ambos ya me funcionan, pero en rfactor 2 solo coge datos de mi coche , en raceroom si cambio de coche, coge los datos de cualquier coche que me suba , a ver si alguien tiene idea para que en rfactor 2 funcione igual , muchísimas gracias

Envio privados para evitar que los hilos se llenen de mis reclamos y los lean una y otra vez ya que no contribuyen, pero no prestan atención.
Los códigos deben ir con etiquetas.
Edita todos los post donde tienes códigos sin etiquetas.
Lee las normas del foro.

perdonar por no saber bien como era la edicion.

este es el de rfactor2 y quería me leyese datos de otros vehículos cuando se sube en el de otro piloto , el código de arriba si me lee en raceroom los datos pero este no ayuda por favor ,gracias

#ifdef REVERSE
  #include <InvertedTM1638.h>
#else
  #include <TM1638.h>
#endif

#define METRIC 1
#define ENGLISH 0

const int DATA_PIN=8;
const int CLOCK_PIN=9;
const int STROBE_PIN=7;

const byte SYSTEM=METRIC; 

#ifdef REVERSE
   InvertedTM1638 module(DATA_PIN, CLOCK_PIN, STROBE_PIN);
#else
   TM1638 module(DATA_PIN, CLOCK_PIN, STROBE_PIN);
#endif
byte Gear,Buttons,Mode_Buttons, Previous_Mode_External; 
int Speed, Fuel_Remaining;
String Velocidad, Velocidad2;
String Fuel, Fuel2;
word Vel;
const int TRAMA_LENGTH=13;
byte TramaSerie[TRAMA_LENGTH];
short int Puntero,Modo_Hud;
long Blink_Interval=50;
boolean Leds_up;
boolean External_Control;
word estado_leds=0;
unsigned long CurrentMillis, PreviousMillis=0;
word leds [10] = {0, 1, 3, 7, 15, 31, 8223, 24607, 57375, 65535};
void setup()
{
  // Inicializar puerto serie a 9600 baudios
  Serial.begin(9600);
  Modo_Hud=-1;
  Mode_Buttons=0;
  Previous_Mode_External=0;
  External_Control=true;
}

void loop()
{
  Buttons=module.getButtons();
  if (Buttons!=0)
  {
     switch(Buttons)
     {
       case 1: Mode_Buttons=0;
           External_Control=false;
               break;
       case 2: Mode_Buttons=1;
           External_Control=false;
               break;
       case 128: Mode_Buttons=99;
                 External_Control=false;
                 break;
     }   
  }
  if (Serial.available()>0)
  {
      if (Serial.available()>TRAMA_LENGTH)
      {
        Puntero=0;
        memset(TramaSerie, 0, sizeof(TramaSerie));
        TramaSerie[Puntero]=Serial.read();
        if (TramaSerie[Puntero]==0xFF)
        {
          for (Puntero=1; Puntero<TRAMA_LENGTH; Puntero++)
          {
            TramaSerie[Puntero]=Serial.read();
          }
  if (TramaSerie[1]!=Previous_Mode_External)
  {
 External_Control=true;
  }
  if (!External_Control)
  {
 if( Mode_Buttons !=Modo_Hud)
 {
 module.clearDisplay(); 
 }
 switch(Mode_Buttons)
 {
 case 0: Display_Velocidad();
 break;
 case 1: Display_Fuel();
 break;
                                case 99: Borrar_Display(); 
                                                break;
 default: Display_Velocidad();
 break;
 }
  }
  else
  {
 if( TramaSerie[1]!=Modo_Hud)
 {
 module.clearDisplay(); 
 }
 switch(TramaSerie[1])
 {
 case 0: Display_Velocidad();
                                        break;
 case 1: Display_Fuel();
                                        break;
                                case 2: Display_DeltaTime1();
                                        break;
                                case 99: Borrar_Display(); 
                                        break;
 default: Display_Velocidad();
                                        break;
 }
  }
          Previous_Mode_External=TramaSerie[1];
  
          //Gestión de LED's
          if (TramaSerie[5] == 9)
          {
            CurrentMillis=millis();
            if (CurrentMillis - PreviousMillis > Blink_Interval)
            {
              PreviousMillis=CurrentMillis;
              if ( Leds_up )
              {
                Leds_up=false;
                module.setLEDs(65535);
                estado_leds=65535;
              }
              else
              {
                Leds_up=true;
                module.setLEDs(0);
                estado_leds=0;
              }
            }
            else
            {
              module.setLEDs(estado_leds); 
            }
          }
          else
          {
            module.setLEDs(leds[TramaSerie[5]]);
            Leds_up=false;
            estado_leds=65535;
          }
         }         
      }   
  }
}

void Display_Velocidad()
{
  switch(TramaSerie[2])
  {
    case 255:
        module.setDisplayToString("r", 0,0);
        break;
    case 0:
        module.setDisplayToString("N", 0,0);
        break;
    default:
        module.setDisplayToString(String(TramaSerie[2],DEC), 0,0);
  }
  Vel=(TramaSerie[4] << 8)| TramaSerie[3];
  if (SYSTEM==ENGLISH)
  {
    Vel=round(Vel/1.609);
  }
  Velocidad=String(Vel,DEC);
  Speed=Velocidad.length();
  switch (Speed)
  {
    case 1: Velocidad2="  "+Velocidad;
            break;
    case 2: Velocidad2=" "+Velocidad;
            break;
    default: Velocidad2=Velocidad;
            break;
                     
  }
  module.setDisplayToString(Velocidad2, 0,5);
  Modo_Hud=0;
}

void Display_Fuel()
{
  module.setDisplayToString("FUEL",0,0);
  Fuel=String(TramaSerie[6], DEC);
  Fuel_Remaining=Fuel.length();
  switch (Fuel_Remaining)
  {
    case 1: Fuel2="  "+Fuel;
            break;
    case 2: Fuel2=" "+Fuel;
            break;
    default: Fuel2=Fuel;
            break;
  } 
  module.setDisplayToString(Fuel2, 0, 5);
  Modo_Hud=1;
}

void Borrar_Display()
{
  if (Modo_Hud!=99)
  {
      module.setLEDs(0);
      module.clearDisplay();
  }
  Modo_Hud=99;
}

void Test_Display()
{
  module.setLEDs(leds[8]);
  module.setDisplayToString("TM1638OK",0,0);
  Modo_Hud=98;
}

void Display_DeltaTime1()
{
  char buffer[8];
  buffer[0]=TramaSerie[7];
  buffer[1]=TramaSerie[8];
  buffer[2]=TramaSerie[9];
  buffer[3]=TramaSerie[11];
  buffer[4]=TramaSerie[12];
  buffer[5]='\0';
  module.setDisplayToString("F1", 0,0);
  module.setDisplayToString(buffer, 0b010000,3);
  Modo_Hud=2;
}

bueno veo que nadie se interesa por decirme que variable es la adecuada para que funcione la toma de datos de todos los coches , así que podéis eliminar el post y muchas gracias iguamente

hombre preguntas el 25 y el 26 ya estas molesto porque nadie responde. Se paciente!!

Yo simplemente con ls dos lineas de tu post#6 no se que responderte.

Arrancaste con un problema de TM1638_COLOR_NONE que era una simple variable que debió estar definida en la librería TM1638.h con un #define TM1638_COLOR_NONE 0 supongo...

y ahora sales con una pregunta que requiere entender todo tu código sin mayor explicación que dos líneas.

Esmérate un poco mas y repito, se paciente que nadie tiene obligación de responder y tu menos de enojarte.
Sino lee las normas del foro en lo que a este tema respecta.