Skip to content

GPey/sAPI

 
 

Repository files navigation

sAPI library for microcontrollers

This library implements a simple API that acts as a HAL (Hardware Abstraction Layer) for microcontrollers.

It takes ideas from Wiring library, but use the concept of peripheral instead the concept of pin, making the API regardless of the number of pins that use certain peripheral.

Documentation

NOTE:

This library is in construction!!

Always use the released versions because these are tested all examples and the API documentation is consistent. The master branch may contain inconsistencies because this library is currently under development.

Included modules

Internal Peripherals

  • Data types.
  • Peripheral Map.
  • ISR Vector.
  • Board.
  • Tick.
  • GPIO.
  • UART.
  • ADC.
  • DAC.
  • I2C.
  • RTC.
  • Sleep.
  • PWM.

Delays

  • Delay.

External Peripherals

  • 7-segment display.
  • Keypad.
  • Angular Servo (0 to 180°).
  • Magnetometer (compass) sensor HMC5883L.

Every module includes an example.

Software layers

 "sapi-modulos-capas.png" image not found

Boards

Now available for boards:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 91.3%
  • C++ 3.0%
  • HTML 2.1%
  • Python 1.7%
  • Objective-C 1.2%
  • Makefile 0.3%
  • Other 0.4%