Question on using Objects
joeld
Posts: 49
I have a basic Object question. Each time I include an Object in my project how much memory am I eating up? Does it matter that much or is only the code used in each Object added at compile time?
For a specific example. I have a project that uses the floatstring object to format numbers to output to a display. I was wanting to add an xbee module to transmit information. The xbee object uses the numbers object. Should I go back and recode my top object to use the numbers object instead of float string? Or am I really not eating up that much more memory by using similar objects?
Joel
For a specific example. I have a project that uses the floatstring object to format numbers to output to a display. I was wanting to add an xbee module to transmit information. The xbee object uses the numbers object. Should I go back and recode my top object to use the numbers object instead of float string? Or am I really not eating up that much more memory by using similar objects?
Joel
Comments
Why don't you see how much memory your project uses? If there's lots of memory available, choose convenience and use both the numbers object and the float string object. If you're tight on space, you may be able to save room by using one of those objects and converting the code to just use that one.
I like the uOLED prop, the only draw back is I'm pretty much out of pins already. Not enough pins for the sensirion, xbee and one button unless I start multi-tasking pins.