Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Display Graphics - the Code — Parallax Forums

PENGUIN ROBOT Display Graphics - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-09-28 08:00 in Robotics
Penguin Displays 5 Graphic Characters
penguin_display_graphics.bpx

Did you know there's a total of five secret hidden
graphic characters in Penguin robot? When Penguin was
first received, I wrote code to show all characters
that will display. Aside from numbers, five special
characters appeared!
humanoido said...
The strength of this code design is that a character
will continue to display even after the program has
ended, or when other code is running.
I don't know how many times the graphic characters
were needed when writing code, but can say it's very
frequent. So this small code (6 lines plus 4 declarations)
was put together to display graphics and help as a
standalone program or as an add-on code for other
programs.

This program displays five graphics characters in
succession, using their corresponding codes. The
comments hold a reference in ascii showing what
the characters look like. The program uses codes
10 through 14. To turn off the display, 15 is used.

' Orientation: face Penguin robot and read display

'       __
' 10   |__
'
'       __
' 11    __|
'
'
' 12   |__|
'
'       __
' 13   |__
'       __
'
'      |__
' 14   |__
'
'
' 15   Off


humanoido
Sign In or Register to comment.