I'll take you through every step (from first principles) to get your ATTINY85 talking to the Arduino IDE Serial Monitor. Library Link and code below:
raw.githubusercontent.com/dam...
NOTE! Use "Angle brackets" instead of quotes on '#include'!
#include "SoftwareSerial.h"
SoftwareSerial Monitor(5, 4);
void setup() {
Monitor.begin(9600);
pinMode(0, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, INPUT);
}
void loop() {
digitalWrite(0, HIGH);
Monitor.println("LED on");
delay(1000);
digitalWrite(0, LOW);
Monitor.println("LED off");
delay(1000);
}
Music: "I can't stand the rain". (Peebles/Bryant/Miller).
Performed by Black Beat:
• I can't stand the rain...
Негізгі бет Тәжірибелік нұсқаулар және стиль ATTINY-85 Serial Monitor. Step-by-step Arduino IDE Guide
Пікірлер: 68