README 875 B

12345678910111213141516171819
  1. This directory contains code that can be shared across all AVR uC, when developing with https://www.nongnu.org/avr-libc/.
  2. Please refer to https://github.com/olikraus/u8g2/wiki/Porting-to-new-MCU-platform to understand what is here.
  3. At lib/u8x8_avr.h, you can find:
  4. u8x8_byte_avr_hw_spi
  5. Implements HW SPI communication. To use it, you're required to define SCK and MOSI ports externally (see example Makefiles).
  6. u8x8_avr_delay
  7. Implements the delay functions that are required by the GPIO and Delay callback function.
  8. This means, you have to write little code to support your own project.
  9. Please refer to the existing main.c and Makefile examples for details on how to use it.
  10. Note: The code https://github.com/olikraus/u8g2/blob/master/sys/avr/avr-libc/lib/u8x8_avr.c requires
  11. * `AVR_USE_HW_I2C` and/or
  12. * `AVR_USE_HW_SPI`
  13. to be defined in your IDE or Makefile.