Shop OBEX P1 Docs P2 Docs Learn Events
How can one display variables using Chip's 'graphics' object? — Parallax Forums

How can one display variables using Chip's 'graphics' object?

HarleyHarley Posts: 997
edited 2010-07-14 22:07 in Propeller 1
This object allows for zero-terminated text, but I don't find a way to display the value of a variable. Is it possible? Or am I going blind?!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-07-14 20:59
    Take the DEC and HEX methods from any of the other display drivers and modify them to produce zero-terminated text in a buffer passed to them as an extra parameter, then use the string display routine in Chip's object to display it. You could even incorporate these into Chip's object. They could use a local variable array for the buffer and call the string output routine directly.
  • HarleyHarley Posts: 997
    edited 2010-07-14 22:07
    Thank you Mike G.

    Not sure why they wouldn't already be needed and exist. OK, looks like I need to add more code (rather than cut back).

    I'd like to include SD card access, but already am about 700+ longs short. So need to really recover lots of memory somehow.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Harley Shanko
Sign In or Register to comment.