hello everyone,
I have a problem on my attiny85-20pu on serial interface this does not brand I want
Example :
#include <SoftwareSerial.h>
const int rx=2;
const int tx=1;
SoftwareSerial mySerial(rx,tx);
int i=0;
char buf[12];
void setup()
{
pinMode(rx,INPUT);
pinMode(tx,OUTPUT);
mySerial.begin(9600);
}
void loop()
{
mySerial.print("lol");
delay(1000);
}//LOOP
And it's brand this on my serial monitor.
ðððððððððððøðððððððððððððððððððððððððððððððð
The bauds is correct and the attiny is on 8Mhz
What is the problem ?
Excuse me for my English.
..looks like incorrect speed. Try 1200 up.
(parameters may not be correct for the compiler)
bigfoot69100:
hello everyone,
I have a problem on my attiny85-20pu on serial interface this does not brand I want
Example :
#include <SoftwareSerial.h>
const int rx=2;
const int tx=1;
SoftwareSerial mySerial(rx,tx);
int i=0;
char buf[12];
void setup()
{
pinMode(rx,INPUT);
pinMode(tx,OUTPUT);
mySerial.begin(9600);
}
void loop()
{
mySerial.print("lol");
delay(1000);
}//LOOP
And it's brand this on my serial monitor.
ðððððððððððøðððððððððððððððððððððððððððððððð
The bauds is correct and the attiny is on 8Mhz
What is the problem ? :-(
Excuse me for my English.
Show us schematic of your connections.
Also tell us what your fuses are set to.