File tree Expand file tree Collapse file tree 2 files changed +49
-167
lines changed
libraries/SoftwareSerial/examples
Apollo_SoftwareSerial_Example1 Expand file tree Collapse file tree 2 files changed +49
-167
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments