-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathIFont.cs
39 lines (38 loc) · 1.06 KB
/
IFont.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Iot.Device.Max7219
{
/// <summary>
/// A font contains one list of bytes per character which can be written to the matrix to represent the character.
/// </summary>
/// <remarks>
/// Each character consists of a list of bytes where a single byte represents a column of the display.
/// </remarks>
///
/// <example>
/// This example shows how the 'A' char could by encoded:
/// <code>
/// var aBytes = new byte[] {
/// 0b1111100,
/// 0b1111110,
/// 0b0010011,
/// 0b0010011,
/// 0b1111110,
/// 0b1111100,
/// 0b0000000,
/// 0b0000000
/// };
/// </code>
///
/// </example>
public interface IFont
{
/// <summary>
/// Returns a list of bytes for a given character to be written to a matrix.
/// </summary>
ListByte this[char chr]
{
get;
}
}
}