-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from sparkfun/release-candidate
Release 1.2.2
- Loading branch information
Showing
54 changed files
with
1,038 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule mbed-os
updated
4 files
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
libraries/Apollo3/examples/Example10_DisplayICRevision/Example10_DisplayICRevision.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* Author: Nathan Seidle | ||
Created: October 16th, 2019 | ||
License: MIT. See SparkFun Arduino Apollo3 Project for more information | ||
This example demonstrates how to display the revision of the Apollo3. | ||
See the Ambiq website for errata on each revision: https://ambiqmicro.com/mcu/ | ||
*/ | ||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
delay(10); //Wait for any bootloader UART interactions to complete | ||
Serial.println(); | ||
Serial.print("Apollo3 IC revision code: "); | ||
|
||
if (APOLLO3_A0) | ||
{ | ||
Serial.print("A0"); | ||
} | ||
else if (APOLLO3_A1) | ||
{ | ||
Serial.print("A1"); | ||
} | ||
else if (APOLLO3_B0) | ||
{ | ||
Serial.print("B0"); | ||
} | ||
else if (APOLLO3_GE_B0) | ||
{ | ||
Serial.print("Unknown revision but it's greater than B0"); | ||
} | ||
else | ||
{ | ||
Serial.print("Unknown revision"); | ||
} | ||
Serial.println(); | ||
Serial.println("All done"); | ||
} | ||
|
||
void loop() | ||
{ | ||
//Do nothing | ||
} |
51 changes: 51 additions & 0 deletions
51
libraries/Apollo3/examples/Example11_BLEAdvertise/Example11_BLEAdvertise.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
BLEAdvertise | ||
This example creates a BLE peripheral which advertises itself as Artemis. | ||
Central devices may connect with it, but there are no services or | ||
characteristics to interact with. | ||
Based on a stripped down version of the LED example from the ArduinoBLE examples | ||
*/ | ||
|
||
#include <ArduinoBLE.h> //http://librarymanager/All#ArduinoBLE_IoT | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
while (!Serial); | ||
|
||
// begin initialization | ||
if (!BLE.begin()) { | ||
Serial.println("Starting BLE failed!"); | ||
while (1); | ||
} | ||
|
||
// set advertised local name and service UUID: | ||
BLE.setLocalName("Artemis"); | ||
|
||
// start advertising | ||
BLE.advertise(); | ||
|
||
Serial.println("BLE advertising as 'Artemis'"); | ||
} | ||
|
||
void loop() { | ||
// listen for BLE peripherals to connect: | ||
BLEDevice central = BLE.central(); | ||
|
||
// if a central is connected to peripheral: | ||
if (central) { | ||
Serial.print("Connected to central: "); | ||
// print the central's MAC address: | ||
Serial.println(central.address()); | ||
|
||
// while the central is still connected to peripheral... | ||
while (central.connected()) { | ||
//Nothing to do here | ||
} | ||
|
||
// when the central disconnects, print it out: | ||
Serial.print(F("Disconnected from central: ")); | ||
Serial.println(central.address()); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.