Skip to content

Commit 1d58ae1

Browse files
author
Nathan Seidle
committed
Update example 1
1 parent c21d0d9 commit 1d58ae1

File tree

2 files changed

+49
-167
lines changed

2 files changed

+49
-167
lines changed

libraries/SoftwareSerial/examples/Apollo_EEPROM/Apollo_EEPROM.ino

Lines changed: 0 additions & 167 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
Author: Nathan Seidle
3+
SparkFun Electronics
4+
Created: June 19 2019
5+
License: MIT. See SparkFun Arduino Apollo3 Project for more information
6+
7+
Feel like supporting open source hardware? Buy a board from SparkFun!
8+
https://www.sparkfun.com/artemis
9+
10+
This example shows how to receive characters at 9600bps. Any pin can be used for
11+
reception.
12+
13+
Hardware Connections:
14+
Attach a USB to serial converter (https://www.sparkfun.com/products/15096)
15+
Connect
16+
GND on SerialBasic <-> GND on Artemis
17+
TXO on SerialBasic <-> Pin 7 on Artemis
18+
Load this code
19+
Open Arduino serial monitor at 9600
20+
Open Terminal window (TeraTerm) at 9600
21+
Press a button in terminal window, you should see it in Arduino monitor
22+
*/
23+
24+
25+
//#define DEBUG
26+
#define LED 13
27+
28+
#include <SoftwareSerial.h>
29+
SoftwareSerial mySerial(7, 8); //RX, TX
30+
31+
void setup() {
32+
Serial.begin(9600);
33+
Serial.println("Software Serial Example");
34+
35+
//enableBurstMode(); //Go to 96MHz
36+
37+
mySerial.begin(9600); //SERIAL_8N1);
38+
}
39+
40+
void loop() {
41+
digitalWrite(LED, HIGH);
42+
//delay(100);
43+
digitalWrite(LED, LOW);
44+
//delay(100);
45+
46+
delay(1);
47+
48+
49+
}

0 commit comments

Comments
 (0)