1#if !defined(_RADIOLIB_HELLSCHREIBER_H)
2#define _RADIOLIB_HELLSCHREIBER_H
4#include "../../TypeDef.h"
6#if !RADIOLIB_EXCLUDE_HELLSCHREIBER
8#include "../PhysicalLayer/PhysicalLayer.h"
9#include "../AFSK/AFSK.h"
10#include "../Print/Print.h"
12#define RADIOLIB_HELL_FONT_WIDTH 7
13#define RADIOLIB_HELL_FONT_HEIGHT 7
19static const uint8_t HellFont[64][RADIOLIB_HELL_FONT_WIDTH - 2] RADIOLIB_NONVOLATILE = {
20 { 0b0000000, 0b0000000, 0b0000000, 0b0000000, 0b0000000 },
21 { 0b0001000, 0b0001000, 0b0001000, 0b0000000, 0b0001000 },
22 { 0b0010100, 0b0010100, 0b0000000, 0b0000000, 0b0000000 },
23 { 0b0010100, 0b0111110, 0b0010100, 0b0111110, 0b0010100 },
24 { 0b0111110, 0b0101000, 0b0111110, 0b0001010, 0b0111110 },
25 { 0b0110010, 0b0110100, 0b0001000, 0b0010110, 0b0100110 },
26 { 0b0010000, 0b0101000, 0b0010000, 0b0101000, 0b0110100 },
27 { 0b0001000, 0b0001000, 0b0000000, 0b0000000, 0b0000000 },
28 { 0b0000100, 0b0001000, 0b0001000, 0b0001000, 0b0000100 },
29 { 0b0010000, 0b0001000, 0b0001000, 0b0001000, 0b0010000 },
30 { 0b0010100, 0b0001000, 0b0010100, 0b0000000, 0b0000000 },
31 { 0b0001000, 0b0001000, 0b0111110, 0b0001000, 0b0001000 },
32 { 0b0000000, 0b0000000, 0b0000000, 0b0001000, 0b0010000 },
33 { 0b0000000, 0b0000000, 0b0111110, 0b0000000, 0b0000000 },
34 { 0b0000000, 0b0000000, 0b0000000, 0b0000000, 0b0001000 },
35 { 0b0000010, 0b0000100, 0b0001000, 0b0010000, 0b0100000 },
36 { 0b0011100, 0b0100110, 0b0101010, 0b0110010, 0b0011100 },
37 { 0b0011000, 0b0001000, 0b0001000, 0b0001000, 0b0001000 },
38 { 0b0011000, 0b0100100, 0b0001000, 0b0010000, 0b0111100 },
39 { 0b0111100, 0b0000100, 0b0011100, 0b0000100, 0b0111100 },
40 { 0b0100100, 0b0100100, 0b0111100, 0b0000100, 0b0000100 },
41 { 0b0011100, 0b0100000, 0b0111100, 0b0000100, 0b0111100 },
42 { 0b0111100, 0b0100000, 0b0111100, 0b0100100, 0b0111100 },
43 { 0b0111100, 0b0000100, 0b0001000, 0b0010000, 0b0100000 },
44 { 0b0111100, 0b0100100, 0b0011000, 0b0100100, 0b0111100 },
45 { 0b0111100, 0b0100100, 0b0111100, 0b0000100, 0b0111100 },
46 { 0b0000000, 0b0001000, 0b0000000, 0b0000000, 0b0001000 },
47 { 0b0000000, 0b0001000, 0b0000000, 0b0001000, 0b0001000 },
48 { 0b0000100, 0b0001000, 0b0010000, 0b0001000, 0b0000100 },
49 { 0b0000000, 0b0111110, 0b0000000, 0b0111110, 0b0000000 },
50 { 0b0010000, 0b0001000, 0b0000100, 0b0001000, 0b0010000 },
51 { 0b0011100, 0b0000100, 0b0001000, 0b0000000, 0b0001000 },
52 { 0b0011100, 0b0100010, 0b0101110, 0b0101010, 0b0001100 },
53 { 0b0111110, 0b0100010, 0b0111110, 0b0100010, 0b0100010 },
54 { 0b0111100, 0b0010010, 0b0011110, 0b0010010, 0b0111100 },
55 { 0b0011110, 0b0110000, 0b0100000, 0b0110000, 0b0011110 },
56 { 0b0111100, 0b0100010, 0b0100010, 0b0100010, 0b0111100 },
57 { 0b0111110, 0b0100000, 0b0111100, 0b0100000, 0b0111110 },
58 { 0b0111110, 0b0100000, 0b0111100, 0b0100000, 0b0100000 },
59 { 0b0111110, 0b0100000, 0b0101110, 0b0100010, 0b0111110 },
60 { 0b0100010, 0b0100010, 0b0111110, 0b0100010, 0b0100010 },
61 { 0b0011100, 0b0001000, 0b0001000, 0b0001000, 0b0011100 },
62 { 0b0111100, 0b0001000, 0b0001000, 0b0101000, 0b0111000 },
63 { 0b0100100, 0b0101000, 0b0110000, 0b0101000, 0b0100100 },
64 { 0b0100000, 0b0100000, 0b0100000, 0b0100000, 0b0111100 },
65 { 0b0100010, 0b0110110, 0b0101010, 0b0100010, 0b0100010 },
66 { 0b0100010, 0b0110010, 0b0101010, 0b0100110, 0b0100010 },
67 { 0b0011100, 0b0100010, 0b0100010, 0b0100010, 0b0011100 },
68 { 0b0111110, 0b0100010, 0b0111110, 0b0100000, 0b0100000 },
69 { 0b0111110, 0b0100010, 0b0100010, 0b0100110, 0b0111110 },
70 { 0b0111110, 0b0100010, 0b0111110, 0b0100100, 0b0100010 },
71 { 0b0111110, 0b0100000, 0b0111110, 0b0000010, 0b0111110 },
72 { 0b0111110, 0b0001000, 0b0001000, 0b0001000, 0b0001000 },
73 { 0b0100010, 0b0100010, 0b0100010, 0b0100010, 0b0111110 },
74 { 0b0100010, 0b0100010, 0b0010100, 0b0010100, 0b0001000 },
75 { 0b0100010, 0b0100010, 0b0101010, 0b0110110, 0b0100010 },
76 { 0b0100010, 0b0010100, 0b0001000, 0b0010100, 0b0100010 },
77 { 0b0100010, 0b0010100, 0b0001000, 0b0001000, 0b0001000 },
78 { 0b0111110, 0b0000100, 0b0001000, 0b0010000, 0b0111110 },
79 { 0b0001100, 0b0001000, 0b0001000, 0b0001000, 0b0001100 },
80 { 0b0100000, 0b0010000, 0b0001000, 0b0000100, 0b0000010 },
81 { 0b0011000, 0b0001000, 0b0001000, 0b0001000, 0b0011000 },
82 { 0b0001000, 0b0010100, 0b0000000, 0b0000000, 0b0000000 },
83 { 0b0000000, 0b0000000, 0b0000000, 0b0000000, 0b0111110 }
98 #if !RADIOLIB_EXCLUDE_AFSK
113 int16_t
begin(
float base,
float rate = 122.5);
133 size_t write(uint8_t b)
override;
139 #if !RADIOLIB_EXCLUDE_AFSK
143 uint32_t baseFreq = 0, baseFreqHz = 0;
144 uint32_t pixelDuration = 0;
147 int16_t transmitDirect(uint32_t freq = 0, uint32_t freqHz = 0);
Client for audio-based transmissions. Requires Arduino tone() function, and a module capable of direc...
Definition AFSK.h:16
Client for Hellschreiber transmissions.
Definition Hellschreiber.h:90
int16_t begin(float base, float rate=122.5)
Initialization method.
Definition Hellschreiber.cpp:21
size_t printGlyph(const uint8_t *buff)
Method to "print" a buffer of pixels, this is exposed to allow users to send custom characters.
Definition Hellschreiber.cpp:33
void setInversion(bool inv)
Invert text color.
Definition Hellschreiber.cpp:57
size_t write(uint8_t b) override
Write one byte. Implementation of interface of the RadioLibPrint/Print class.
Definition Hellschreiber.cpp:61
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition PhysicalLayer.h:216
Printing class, based on Arduino Print class with additional encodings.
Definition Print.h:17