Hi Raschemmel,
The software serial is for the ATtiny85, not for the Arduino Mega 2560.
I tried to program my ATtiny85 with the example. I connected 'PB4' (tx) with 'TX0->' (tx to tx), but the serial communication with the Arduino IDE (using Mega 2560) doesn't work... :(.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(3,4); //rx, tx
void setup()
{
mySerial.begin(9600);
}
void loop()
{
mySerial.println("hello world");
delay(1000);
}
Thanks for your help i really appreciate it!!