Sometimes we still need to write a Suli-compatible program or library ,especially when we can not find a suli-compatible library to download . As we all know, libraries is base on APIs by calling functions,so before we start to write a Suli-compatible Library we should be familiar with its APIs first .
To introduce suli APIs here ,I will not explain it in a way like a textbook ,instead I will show you enough examples. That will be more efficient ,and if you want more detail information ,you can also find it by reading suli handbook .
Anyway ,writting a Suli-compatible library is not difficult ,it is the same as writting a arduino compatible library ,the only thing different is using Suli APIs . Here we use a Seeeduino board as the arduino platform ,use a Seeeduino Arch board as the mbed platform .
2.1Example one : to be uploaded
3.1Example one : to be uploaded
4.1Example one : to be uploaded
5.1Example one : to be uploaded