PololuOLED library
PololuOLEDHelpers.h
Go to the documentation of this file.
1 // Copyright (C) Pololu Corporation. See www.pololu.com for details.
2 
4 
5 #pragma once
6 
7 #include <Arduino.h>
8 
13 extern const PROGMEM uint8_t pololuOledFont[][5] ;
14 
15 namespace PololuOLEDHelpers {
16 
18 
19 static const uint8_t repeatBitsTable[16] PROGMEM = {
20  0b00000000,
21  0b00000011,
22  0b00001100,
23  0b00001111,
24  0b00110000,
25  0b00110011,
26  0b00111100,
27  0b00111111,
28  0b11000000,
29  0b11000011,
30  0b11001100,
31  0b11001111,
32  0b11110000,
33  0b11110011,
34  0b11111100,
35  0b11111111
36 };
37 
38 static inline uint8_t repeatBits(uint8_t d)
39 {
40  return pgm_read_byte(repeatBitsTable + d);
41 }
42 
44 
45 
46 }
const PROGMEM uint8_t pololuOledFont[][5]
This array defines the appearance of characters 32 through 255.