Skip to content

Commit

Permalink
Code in README.md does not compile (dotnet#1043)
Browse files Browse the repository at this point in the history
MatrixTextWriter class was renamed to MatrixGraphics some time ago. Same thing goes with names of the fonts.
  • Loading branch information
dovissz authored Apr 16, 2020
1 parent 7e507da commit c9ca042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/Max7219/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ Write "Hello World from MAX7219!" to the Matrix using different fonts each itera
```csharp
devices.Init();
devices.Rotation = RotationType.Left;
var writer = new MatrixTextWriter(devices, Fonts.CP437);
foreach (var font in new[]{Fonts.CP437, Fonts.LCD_FONT, Fonts.SINCLAIR_FONT, Fonts.TINY_FONT, Fonts.UKR_FONT}) {
var writer = new MatrixGraphics(devices, Fonts.CP437);
foreach (var font in new[]{Fonts.CP437, Fonts.LCD, Fonts.Sinclair, Fonts.Tiny, Fonts.CyrillicUkrainian}) {
writer.Font = font;
writer.ShowMessage("Hello World from MAX7219!", alwaysScroll: true);
}
Expand Down

0 comments on commit c9ca042

Please sign in to comment.