Giter Site home page Giter Site logo

u8glib-hal's Introduction

U8glib-HAL

u8g by Oliver Kraus with extensions for ARM and HAL

The extensions allow access to the u8g library by "non native" CPUs/systems.

AVR, Arduino & Due access to the library is not changed.

Enabling the extensions is done by defining the flag U8G_HAL_LINKS. In platformio.ini this can be done by adding the build flag -DU8G_HAL_LINKS

The following files provide the links between the u8g library and the "non native" CPUs/systems.

#include <HAL_LCD_defines.h>

HAL_LCD_defines.h pulls in the top level link file. The top level link file has the following functions:

  • Defines the names of the link files for SPI routines, delay routines, I2C routines and class definitions.
  • Connect u8g com generic com defines to the desired HAL com routine.

#include "HAL_LCD_delay.h"

Contains code or declarations for the u8g routines:

  • void U8g_delay(int msec);
  • void u8g_MicroDelay(void);
  • void u8g_10MicroDelay(void);

#include "HAL_LCD_pin_routines.h"

Contains code or declarations for the u8g routines:

  • void u8g_SetPinOutput(uint8_t internal_pin_number);
  • void u8g_SetPinInput(uint8_t internal_pin_number);
  • void u8g_SetPinLevel(uint8_t pin, uint8_t pin_status);
  • uint8_t u8g_GetPinLevel(uint8_t pin);

#include "HAL_LCD_I2C_routines.h"

Contains code or declarations for the u8g routines:

  • void u8g_i2c_init(uint8_t options);
  • uint8_t u8g_i2c_wait(uint8_t mask, uint8_t pos);
  • uint8_t u8g_i2c_start(uint8_t sla);
  • uint8_t u8g_i2c_send_byte(uint8_t data);
  • void u8g_i2c_stop(void);

u8glib-hal's People

Contributors

idorobots avatar jmz52 avatar p3p avatar thinkyhead avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.