Skip to content

rumpeltux/stm8-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM8-Arduino

Low-overhead Arduino compatibility library for STM8 microcontrollers.

This project tries to lower the bar when writing code for STM8. It’s for you if:

  • you are familiar with Arduino APIs and don't want to bother reading the STM8 datasheet
  • you want to port an existing Arduino library to work with STM8

NOTE: sdcc doesn’t support C++ and there are a few constraints, so the APIs don't match 100%.

Supported Features

  • GPIO: digitalRead, digitalWrite, pinMode, attachInterrupt
  • UART: serial output, use puts, putchar or even printf natively
  • ADC: analogRead
  • SPI: spi_transfer

Usage

  1. sudo apt-get install sdcc make
  2. Put your code into example/demo.c
  3. Adjust example/Makefile with your stm8flash command. I recommend to use stm8flash with the ESP8266-based esp-stlink.
  4. Run: make flash

Bug reports

Please file bugs if you run into any issues.

About

Low-overhead Arduino compatibility library for STM8 microcontrollers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published