Sduino

Porting the most important features of the Arduino API to the STM8S.

Within a few minutes you are ready to compile and upload your first STM8S-based project while still retaining the flexibility to use ST's SPL functions.

All you need to get started is a simple STM8S103F breakout board for 70 cents and a ST-Link V2 compatible flash programmer for $2.50. Three boards and one flash programmer together are available for well under five dollars including shipping on aliexpress.

Amazing!

Usage

The recommanded way of installation is now the Arduino Board Manager:

Wait for the download to finsh and you are ready to blink:

Easy, isn't it?

In order to upload the compiled sketch to a connected board you need to install your flash tool.

Included libraries

Some Arduino libraries are already ported to C-syntax. The resulting API is still very close to the C++ version and porting an existing application is not hard. Check out the API migration guidelines for details.

Communication

Displays

Motor control

Supported hardware

Limitations

SDCC doesn't support C++. Some preprocessor magic is applied to close the gap between C and C++ syntax as much as possible, but this is not a 100% compatible drop-in replacement for full Arduino environments like for AVR or STM32. See Limitations and the migration guidelines for details.

Supported Systems