ssd1306xledtx.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * SSD1306xLED - Library for the SSD1306 based OLED/PLED 128x64 displays
  3. *
  4. * @author Neven Boyanov
  5. *
  6. * This is part of the Tinusaur/SSD1306xLED project.
  7. *
  8. * Copyright (c) 2018 Neven Boyanov, The Tinusaur Team. All Rights Reserved.
  9. * Distributed as open source software under MIT License, see LICENSE.txt file.
  10. * Retain in your source code the link http://tinusaur.org to the Tinusaur project.
  11. *
  12. * Source code available at: https://bitbucket.org/tinusaur/ssd1306xled
  13. *
  14. */
  15. #ifndef SSD1306XLEDTX_H
  16. #define SSD1306XLEDTX_H
  17. // ============================================================================
  18. #define ssd1306_numdec(n) ssd1306tx_numdec(n)
  19. // ----------------------------------------------------------------------------
  20. extern uint8_t *ssd1306xled_font6x8;
  21. extern uint8_t *ssd1306xled_font8x16;
  22. // ----------------------------------------------------------------------------
  23. void ssd1306tx_init(const uint8_t *fron_src, uint8_t char_base);
  24. void ssd1306tx_char(char ch);
  25. void ssd1306tx_string(char *s);
  26. void ssd1306tx_numdec(uint16_t num);
  27. void ssd1306tx_numdecp(uint16_t num);
  28. void ssd1306tx_stringxy(const uint8_t *fron_src, uint8_t x, uint8_t y, const char s[]);
  29. // ============================================================================
  30. #endif