AdmiralCrunch
Well-known member
hi,
I have adopted the adruino libary-tutorial to a very simple class.. the problem is, that it compiles till the end.. then my windows shows that a usb-device disconnected.. immediately re-connect again.. and nothing else..
I just can't figure out what causes this problem :/
Mux.h
Mux.cpp
Sketch
can someone please give me a hint?
I have adopted the adruino libary-tutorial to a very simple class.. the problem is, that it compiles till the end.. then my windows shows that a usb-device disconnected.. immediately re-connect again.. and nothing else..
I just can't figure out what causes this problem :/
Mux.h
Code:
#ifndef Mux_h
#define Mux_h
#include "Arduino.h"
class Mux {
public:
Mux();
void pollMuxDigital();
private:
};
#endif
Mux.cpp
Code:
/*
Mux.cpp
*/
#include "Arduino.h"
#include "Mux.h"
Mux::Mux() {
Serial.println("MUX INIT");
}
void Mux::pollMuxDigital() {
Serial.println("pollMuxDigital");
}
Sketch
Code:
#include <Mux.h>
Mux mux;
void setup() {
// put your setup code here, to run once:
Serial.begin(38400);
}
void loop() {
mux.pollMuxDigital();
delay(500);
}
can someone please give me a hint?