Skip to content

ultibohub/API

Repository files navigation

Ultibo API

Ultibo core API for C and C++

Supported interfaces:

The includes directory contains header files for interfaces to the following Ultibo APIs

  • ultibo/console.h -
  • ultibo/devices.h -
  • ultibo/devicetree.h -
  • ultibo/dma.h -
  • ultibo/filesystem.h -
  • ultibo/font.h -
  • ultibo/framebuffer.h -
  • ultibo/globalconst.h -
  • ultibo/globaltypes.h -
  • ultibo/gpio.h -
  • ultibo/graphicsconsole.h -
  • ultibo/heapmanager.h -
  • ultibo/hid.h -
  • ultibo/i2c.h -
  • ultibo/iphlpapi.h -
  • ultibo/joystick.h -
  • ultibo/keyboard.h -
  • ultibo/keymap.h -
  • ultibo/locale.h -
  • ultibo/logging.h -
  • ultibo/mmc.h -
  • ultibo/mouse.h -
  • ultibo/network.h -
  • ultibo/platform.h -
  • ultibo/pwm.h -
  • ultibo/rtc.h -
  • ultibo/serial.h -
  • ultibo/spi.h -
  • ultibo/storage.h -
  • ultibo/system.h -
  • ultibo/sysutils.h -
  • ultibo/tftframebuffer.h -
  • ultibo/threads.h -
  • ultibo/timezone.h -
  • ultibo/touch.h -
  • ultibo/uart.h -
  • ultibo/ultibo.h -
  • ultibo/unicode.h -
  • ultibo/usb.h -
  • ultibo/winsock.h -
  • ultibo/winsock2.h -

In addition to the Ultibo interface headers a small number of headers that expose functionality not normally available in the Newlib C library are also provided

  • netdb.h -
  • semaphore.h -
  • arpa/inet.h -
  • netinet/in.h -
  • netinet6/in6.h -
  • sys/dirent.h -
  • sys/socket.h -
  • sys/statfs.h -

Example projects:

Located under the samples directory are a number of simple projects that show how to use the API

  • Hello World
  • Blinker
  • Screen Output
  • Keyboard Input
  • Time Date
  • File Handling
  • Log Output
  • Multi Threading
  • Multi CPU
  • Serial Connection
  • GPIO Handling
  • Mouse Cursor
  • Bouncing Boxes
  • PWM Control
  • Sense Hat
  • PWM Sound
  • Joystick Gamepad

Advanced examples:

  • Dedicated CPU