ReferenceLanguage | Libraries | Comparison | Changes
This new library format is intended to be used in tandem with Library Manager, available since Arduino IDE 1.6.2. The Library Manager allows users to automatically download and install libraries needed in their projects, with an easy to use graphical interface in the Arduino IDE/Pro IDE and Arduino Web Editor as well as arduino-cli lib. Wait for downloads to finish; Scroll down until you find the “Intel Curie Boards” item. Click “Install” Wait for installation to complete. Click “Close” Tools Board Arduino/Genuino 101; The CurieBLE library will now be available. It is only available when you have the Arduino/Genuino 101 board selected. DHT sensor library. Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors Author: Adafruit. Maintainer: Adafruit. Read the documentation. This library is compatible with all architectures so you should be able to use it on all the Arduino boards.
- ArduinoLSM9DS1 - library to use the LSM9DS1 9 axis IMU available on the Arduino Nano 33 BLE and the Arduino Nano 33 BLE Sense. Arduino Nano 33 BLE Sense PDM - library to use the digital microphone MP34DT05, our library PDM can be used also with our ArduinoSound library.
- SoftwareSerial Library. The Arduino hardware has built-in support for serial communication on pins 0 and 1 (which also goes to the computer via the USB connection). The native serial support happens via a piece of hardware (built into the chip) called a UART. This hardware allows the Atmega chip to receive serial communication even while.
SoftwareSerial Library
The Arduino hardware has built-in support for serial communication on pins 0 and 1 (which also goes to the computer via the USB connection). The native serial support happens via a piece of hardware (built into the chip) called a UART. This hardware allows the Atmega chip to receive serial communication even while working on other tasks, as long as there room in the 64 byte serial buffer.
The SoftwareSerial library has been developed to allow serial communication on other digital pins of the Arduino, using software to replicate the functionality (hence the name 'SoftwareSerial'). It is possible to have multiple software serial ports with speeds up to 115200 bps. A parameter enables inverted signaling for devices which require that protocol.
The version of SoftwareSerial included in 1.0 and later is based on the NewSoftSerial library by Mikal Hart.
Arduino Stream Class
Limitations
The library has the following known limitations:
- If using multiple software serial ports, only one can receive data at a time.
- Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
Example
SoftwareSerial mySerial(2,3);
voidsetup()
{
Serial.begin(57600);
Serial.println('Goodnight moon!');
// set the data rate for the SoftwareSerial port
mySerial.begin(4800);
mySerial.println('Hello, world?');
}
voidloop()// run over and over
{
if(mySerial.available())
Serial.write(mySerial.read());
if(Serial.available())
mySerial.write(Serial.read());
}
Download Arduino Library Zip
Functions
Arduino Library
- SoftwareSerial()
- available()
- begin()
- isListening()
- overflow()
- read()
- print()
- println()
- listen()
- write()
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under aCreative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.