Hi,
I am new to teensy and this forum. I tried to compile a little project but the compiler fails with an error.
Both ino files are in the same folder.
I declared my class in Timer.ino:
Code:
but when I want to use it in the main program:
I get this message from the compiler:
Quote:
Am I wrong about classes?
Or how can I fix it?
Thanks and happy Holidays
Rob
I am new to teensy and this forum. I tried to compile a little project but the compiler fails with an error.
Both ino files are in the same folder.
I declared my class in Timer.ino:
Code:
Code:
class _CDimmer : IntervalTimer {
private:
// Daten
_Heute Heute;
elapsedMillis test;
// Funktionen
int getDimmIntervall( int data );
void getHeute( unsigned int Datensatz );
public:
_CDimmer();
~_CDimmer();
void Setup();
void Dimmer( void );
} Dimmer;
but when I want to use it in the main program:
Code:
Code:
// Objekte
extern _CDimmer Dimmer;
void setup()
{
pinMode( PIN_INTERN_LED, OUTPUT );
digitalWrite( PIN_INTERN_LED, 255 );
Serial.begin( 9600 );
delay( 5000 );
//DisplaySetup();
//Dimmer_Setup();
Dimmer.Setup();
....
}
I get this message from the compiler:
Quote:
Compiling 'TerrariumController' for 'Teensy 3.0'
TerrariumController.ino : '_CDimmer' does not name a type
TerrariumController.ino : : In function 'void setup()':
TerrariumController.ino : 'Dimmer' was not declared in this scope
Error compiling
Am I wrong about classes?
Or how can I fix it?
Thanks and happy Holidays
Rob