Skip to content

Libraries

Frederic Pillon edited this page Sep 9, 2019 · 25 revisions

Herafter, a non exhaustive list of libraries compatible with the STM32 core.

Currently, libraries that come with the Arduino IDE should work (could required some pins update in the sketch).

All those using SPI, I2C should be fully compatible.

/img/Warning-icon.png Arduino boards provide ICSP connector used by several Arduino shield for SPI signal: MISO/MOSI/SCK. STM32 boards do not have this ICSP connector, so this requires to manually wire those SPI signal on the desire pin (mainly: D11 to D13)

Built-in (delivered with the core package)

  • SPI: follow the official SPI API
  • Wire (I2C): follow the official Wire API.
  • EEPROM: follow the official EEPROM API.
  • Servo: follow the official Servo API.

Dedicated

Some libraries have been developed to support specific hardware features:

  • LPS22HB: to support the LPS22HB 260-1260 hPa absolute digital ouput barometer
  • HTS221: to support the HTS221 capacitive digital sensor for relative humidity and temperature
  • LIS3MDL: to support the LIS3MDL high-performance 3-axis magnetometer
  • LPS25HB: to support the LPS25HB 260-1260 hPa absolute digital ouput barometer
  • LSM303AGR: to support the LSM303AGR 3D accelerometer and 3D magnetometer
  • LSM6DS0: to support the LSM6DS0 3D accelerometer and 3D gyroscope
  • LSM6DS3 : Arduino library to support the LSM6DS3 3D accelerometer and 3D gyroscope
  • LSM6DSL: to support the LSM6DSL 3D accelerometer and 3D gyroscope
  • MX25R6435F: to support the Quad-SPI NOR Flash memory MX25R6435F
  • SPBTLE-RF: to support the Bluetooth (V4.1 compliant) SPBTLE-RF
  • STM32Ethernet: for on board Ethernet port (ex: Nucleo-F429ZI).
    This library is fully compatible with Arduino Ethernet API.
  • STM32SD: for board with SD card slot (ex: Disco-F746).
    This library is fully compatible with Arduino SD API.
  • VL53L0X: to support the VL53L0X Time-of-Flight and gesture-detection sensor

Goal is to have all dedicated STM32 libraries available through the "Library Manager"

Have a look here to see which one are available or thanks the "Library Manager"

http://www.arduinolibraries.info/architectures/stm32

Official from Arduino

Third party

ARDUINO_ARCH_STM32 must be used as differentiator.

Tested

Clone this wiki locally