Global TV_Text
John Abshier
Posts: 1,116
My Spin program is structured
·· SRF08Demo· ' object to call SRF08 and print out some results
····· tv : "TV_Text"·· ' writes to TV
····· RF : "SRF08"····· ' object that reads SRF08 ultrasonic rangefinders
I would also like to write to the TV from the SRF08 object, but it cannot see the name tv.· If I add a new TV_Text object in the SRF08 object, both try to control the tv and the display is hosed.· Commenting out all references to the TV_Text object in the top object to write out a quick debug in the SRF08 object is a pain.· I guess I could write to the USB2Serial chip on the Demo board, but that requires closing the Propeller Tool, another pain.· When debug screens (like in PBASIC) are added, it would be nice if different objects could open different debug screens.· Have I missed the cool way to handle this situation or is it just something I will have to live with?
·· SRF08Demo· ' object to call SRF08 and print out some results
····· tv : "TV_Text"·· ' writes to TV
····· RF : "SRF08"····· ' object that reads SRF08 ultrasonic rangefinders
I would also like to write to the TV from the SRF08 object, but it cannot see the name tv.· If I add a new TV_Text object in the SRF08 object, both try to control the tv and the display is hosed.· Commenting out all references to the TV_Text object in the top object to write out a quick debug in the SRF08 object is a pain.· I guess I could write to the USB2Serial chip on the Demo board, but that requires closing the Propeller Tool, another pain.· When debug screens (like in PBASIC) are added, it would be nice if different objects could open different debug screens.· Have I missed the cool way to handle this situation or is it just something I will have to live with?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Another thing I've done to debug routines in different cogs is to use both a TV driver and a VGA driver at the same time with one handling the debug output only.