Collection of rewritten Arduino C++ libraries to STM32 C libraies by my self. Some libraries have i written from scratch.
Rewritten Arduino C++ library from to STM32 C library. Added some more features as well. Works for both 16x2 LCD and 20x4 LCD etc.
Rewritten STM32 C library from so it will fit multiple PT100 sensors at multiple MAX31865 IC:s. Also I have increase the speed of the library as well. This library is using hardware SPI, not software SPI as
does.
Rewritten STM32 C library from . MYaqoobEmbedded is a very professional STM32 coder but I have rewritted some code of his library. My library is 90% based on MYaqoobEmbedded's library, but I'm using only one SPI peripheral, and also this library is writted with more as a "object oriented" C library as my other libraries are as well. That means you can have multiple ILI9341 LCD's on the same SPI peripheral. All you need to do is declare more structures for the ILI9341 LCD. View the code example in the folder and you will understand.
This library contains
- Windows 3.11 Question dialog
- Icons
- Start up screen
- Plot with 2 graphs
- Number pad
- Frames etc.
Rewritten Arduino C++ library from to STM32 C library. This library shares exactly the same functions as the Adafruit's library. This ADC is very powerfull and have 4 channels for measurement. The resolution is 16-bit which is gives a very accurate measurement.
Written STM32 C library. This is a 10-Bit ADC with 8 channels. Use this if you want to have a potentiometer or something analog like a joystick because this ADC is very stable. This ADC does not fit measurements. Please use another ADC with higher bit resolution e.g ADS1115.
Rewritten Arduino C++ library from to STM32 C library. This library share exactly the same functions as the SparkFuns's library. This accelerometer is very cheap but still good. It can measure the acceleration in x, y and z-axis with resolution of 10-bit.
Rewritten Arduino C++ library from to STM32 C library. This library share exactly the same functions as the Adafruits's library. This IO-expander can be used if you don't want to waste IO-pins for e.g LCD or other fun stuff or you just have few IO-pins and want more. This can handle interrupts, read and digital outputs.
Written STM32 C library by my self. This is a well known RTC with two alarm functions for booth weeks and dates. This RTC is one of the better RTC's out there, but still cheap. This RTC has an output pin that goes low when an alarm appears or both alarms appears. Else the output is high when no alarms appear. That's a way to make sure that the RTC is still alive.
This is a very popular and robust radio and transmitter and reciever. This can be used with STM32 boards and it works fine.
I don't know what to say any more, rather than it can send data by using SPI channel.
I have rewritten this from
so it can be used with same SPI line. I have't change anything in his logic, only made it possible for using structs as objects. I have also made some simplifications in this library like having only two files.
My own C code for STM32. This is a simple OLED LCD that have two colors only. Use this LCD if you want to show something simple like a number or display a tiny plot. Notice that this LCD can only have one address. So only one SSD1306 128x32 per project. Connection I2C. I prefer this LCD for debugging.
This code is from Controllers Tech and I have made a very quick setup how to get started, most for my own purposes because I'm going to use this library in the near future. With this code you can read, write, delete and change text files with a STM32 microcontroller.
This is a library for controlling 5V servos with the PCA9685 IC chip. This IC chip has 16 channels with 12-bit PWM. Works great for small servos. A good thing with this library is that this library share the same functions as Adafruit's PCA9685 library
This is a load cell amplifier with 24-bit resolution. I have rewrite Arduino C++ to STM32 C code from bogde. This library works great with STM32.
If your CPU missing EEPROM. Don't worry, you can still write and read to the memory. This folder FlashMemory
gives you a library where you can save float, uint8_t, uint16_t, uint32_t
values and read them later, during the CPU is running.
With this, you can measure velocity, direction and also count the position for an encoder.
Have a look at my repository CControl here at "Model reference adaptive control" topic https://github.com/DanielMartensson/CControl
This library is for ST's own VL6180X and VL6180 distance + ALS sensor. Very good sensor for the low price. I recommend it. This code is rewritten Arduino C++ code from Adafruit to STM32 C code.