Subversion Repositories libOLED

Rev

Rev 2 | Rev 4 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 3
Line 5... Line 5...
5
 *      Author: mike
5
 *      Author: mike
6
 */
6
 */
7
 
7
 
8
#pragma once
8
#pragma once
9
#include <cstdint>
9
#include <cstdint>
10
#include "libOled/fontclass.H"
10
#include "libOLED/fontclass.H"
11
 
11
 
12
inline int constexpr dataSize (int const width, int const height)
12
inline int constexpr dataSize (int const width, int const height)
13
{
13
{
14
  return (width * height /8);
14
  return (width * height /8);
15
}
15
}
Line 52... Line 52...
52
  void drawLine(int16_t x1, int16_t y1, int16_t x2, int16_t y2, colour_t color);
52
  void drawLine(int16_t x1, int16_t y1, int16_t x2, int16_t y2, colour_t color);
53
 
53
 
54
  void gotoxy(int x, int y) {m_cursor_x = x; m_cursor_y=y;};
54
  void gotoxy(int x, int y) {m_cursor_x = x; m_cursor_y=y;};
55
 
55
 
56
 
56
 
57
  void printString(font_t & font, char * string, int length, colour_t colour);
57
  void printString(font_t & font, char const * string, uint16_t length, colour_t colour);
58
 
58
 
59
  void printChar (font_t &font, char c, colour_t colour);
59
  void printChar (font_t &font, char c, colour_t colour);
60
 
60
 
61
  int cursor_x() {return m_cursor_x;};
61
  int cursor_x() {return m_cursor_x;};
62
 
62