Skip to content

Commit 839336a

Browse files
committed
add include Adafruit_TinyUSB.h to example sketches for Serial
also include Adafruit_TinyUSB.h in often used libraries
1 parent 6a2dcbc commit 839336a

File tree

40 files changed

+57
-10
lines changed

40 files changed

+57
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
# Ignore local overrides of platform.txt and boards.txt,
2121
/boards.local.txt
2222
/platform.local.txt
23+
/libraries/**/build/

libraries/Bluefruit52Lib/examples/Hardware/Fading/Fading.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
1818
*/
1919

20+
#include <Arduino.h>
21+
#include <Adafruit_TinyUSB.h> // for Serial
2022

2123
int ledPin = LED_RED; // LED connected to digital pin 9
2224

libraries/Bluefruit52Lib/examples/Hardware/Serial1_test/Serial1_test.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
* Note: Bluefruit nRF52832 does not support Serial1
1919
*/
2020

21-
#include "Arduino.h"
21+
#include <Arduino.h>
22+
#include <Adafruit_TinyUSB.h> // for Serial
2223

2324
void setup()
2425
{

libraries/Bluefruit52Lib/examples/Hardware/SerialEcho/SerialEcho.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*********************************************************************/
1414

1515
#include <Arduino.h>
16+
#include <Adafruit_TinyUSB.h> // for Serial
1617

1718
const int baudrate = 115200;
1819

libraries/Bluefruit52Lib/examples/Hardware/adc/adc.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#include <Arduino.h>
2+
#include <Adafruit_TinyUSB.h> // for Serial
3+
14
int adcin = A5;
25
int adcvalue = 0;
36
float mv_per_lsb = 3600.0F/1024.0F; // 10-bit ADC with 3.6V input range

libraries/Bluefruit52Lib/examples/Hardware/adc_vbat/adc_vbat.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <Arduino.h>
2+
#include <Adafruit_TinyUSB.h> // for Serial
23

34
#if defined ARDUINO_NRF52840_CIRCUITPLAY
45
#define PIN_VBAT A8 // this is just a mock read, we'll use the light sensor, so we can run the test

libraries/Bluefruit52Lib/examples/Hardware/blink_sleep/blink_sleep.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
by Pierre Constantineau
1212
1313
*/
14+
#include <Arduino.h>
15+
#include <Adafruit_TinyUSB.h> // for Serial
1416
#include <bluefruit.h>
1517

1618
#define WAKE_LOW_PIN PIN_A0

libraries/Bluefruit52Lib/examples/Hardware/blinky/blinky.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
by Arturo Guadalupi
1919
*/
2020

21+
#include <Arduino.h>
22+
#include <Adafruit_TinyUSB.h> // for Serial
23+
24+
2125
// the setup function runs once when you press reset or power the board
2226
void setup() {
2327
// initialize digital pin LED_BUILTIN as an output.

libraries/Bluefruit52Lib/examples/Hardware/dfu_ota/dfu_ota.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/* This sketch invoke API to enter OTA dfu mode */
1616

1717
#include <Arduino.h>
18-
18+
#include <Adafruit_TinyUSB.h> // for Serial
1919

2020
void setup()
2121
{

0 commit comments

Comments
 (0)