Datasheet
Software UART
If you are using Software UART, you can set up which pins are going to be used for RX, TX,
and CTS flow control. Some microcontrollers are limited on which pins can be used! Check
the SoftwareSerial library documentation for more details
Hardware UART
If you have Hardware Serial, there's a 'name' for it, usually Serial1 - you can set that up here:
Mode Pin
For both hardware and software serial, you will likely want to define the MODE pin. There's a
few sketches that dont use it, instead depending on commands to set/unset the mode. Its
best to use the MODE pin if you have a GPIO to spare!
SPI Pins
// ----------------------------------------------------------------------------------------------
// These settings are used in both SW UART, HW UART and SPI mode
// ----------------------------------------------------------------------------------------------
#define BUFSIZE 128 // Size of the read buffer for incoming data
#define VERBOSE_MODE true // If set to 'true' enables debug output
// SOFTWARE UART SETTINGS
#define BLUEFRUIT_SWUART_RXD_PIN 9 // Required for software serial!
#define BLUEFRUIT_SWUART_TXD_PIN 10 // Required for software serial!
#define BLUEFRUIT_UART_CTS_PIN 11 // Required for software serial!
#define BLUEFRUIT_UART_RTS_PIN -1 // Optional, set to -1 if unused
// HARDWARE UART SETTINGS
#ifdef Serial1 // this makes it not complain on compilation if there's no Serial1
#define BLUEFRUIT_HWSERIAL_NAME Serial1
#endif
#define BLUEFRUIT_UART_MODE_PIN 12 // Set to -1 if unused
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-bluefruit-le Page 68 of 238










