-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ac2b9f
commit e60288b
Showing
6 changed files
with
250 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
#include <PropWare/hmi/output/video/vgatext.h> | ||
#include <PropWare/hmi/output/printer.h> | ||
|
||
int main() { | ||
PropWare::VGAText Text; | ||
int i; | ||
PropWare::VGAText vgaText; | ||
PropWare::Printer vgaPrinter(vgaText); | ||
vgaText.start(8); | ||
|
||
Text.start(8); | ||
Text.str("\r VGA Text Demo...\r\r\x0C\x05 OBJ and VAR require only 5.0KB \x0C\x01"); | ||
for (i = 0; i < 14; i++) { | ||
Text.out(' '); | ||
} | ||
for (i = 0x0E; i <= 0xFF; i++) { | ||
Text.out(i); | ||
} | ||
Text.str("\x0C\x06 Uses internal ROM font \x0C\x02"); | ||
for (;;) { | ||
Text.str("\x0A\x0C\x0B\x0E"); | ||
Text.hex(i++, 8); | ||
vgaPrinter << "\r VGA Text Demo...\r\r\x0C\x05 OBJ and VAR require only 5.0KB \x0C\x01"; | ||
|
||
for (char i = 0; i < 14; i++) | ||
vgaPrinter << ' '; | ||
|
||
for (char i = 0x0E; i <= 0xFF; i++) | ||
vgaPrinter << i; | ||
|
||
vgaPrinter << "\x0C\x06 Uses internal ROM font \x0C\x02"; | ||
|
||
uint16_t i = 0xFF; | ||
while (1) { | ||
vgaPrinter << "\x0A\x0C\x0B\x0E"; | ||
vgaPrinter.printf("0x04X ", i++); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.