2b75a0ddb4
This example shows how to use softwareSerial in a ATtiny device using the ATtiny core
12 lines
183 B
C++
12 lines
183 B
C++
#include <SoftwareSerial.h>
|
|
|
|
SoftwareSerial mySerial(3, 4); // RX, TX
|
|
|
|
void setup() {
|
|
mySerial.begin(9600);
|
|
}
|
|
|
|
void loop() {
|
|
mySerial.println(millis());
|
|
delay(1000);
|
|
}
|