Open pischky opened 5 years ago
This zip contains patch file and complete changed file "ostream". Feel free to remove "[PI: New]"
BTW: Thanks for this library. Makes life much easer ;-)
This zip contains patch file and complete changed file "ostream". Feel free to remove "[PI: New]"
BTW: Thanks for this library. Makes life much easer ;-)
Thanks! This is exactly what I needed as my free mem on a 328P got very low and the code was using AduinoSTL with lots of
cout << "blah" << endl;
This zip contains patch file and complete changed file "ostream". Feel free to remove "[PI: New]"
BTW: Thanks for this library. Makes life much easer ;-)
I've just tested this patch and it works brilliantly. I've been able to save a lot of precious RAM on a few "third drawer" Uno borads I have lying around.
Have you raised a PR for this patch? A PR it will be more likely to be merged into master.
@chrisco484 Would you send me this as a PR? I'd be happy to take it.
@chrisco484 Would you send me this as a PR? I'd be happy to take it.
Hi Mike,
I ended up hitting too many resource constraints with 328P based boards so moved up to STM32 blue pills/black pills with ARM Cortex CPUs - wow! So much faster and so much more resources and actually cheaper and they still support the Arduino "APIs" so all my Arduino software targeting the 328Ps just recompiled with very little change required. So it was a no brainer.
I'll try to find some time to convert @pischky 's patch zip to a PR.
Hello,
I have created a Pull Request. Did not know that you can edit online on github without local git installation. See #69 Thanks for your library.
Martin
Am 04.01.2022 um 01:45 schrieb Christopher Colemani:
@chrisco484 <https://github.com/chrisco484> Would you send me this as a PR? I'd be happy to take it.
Hi Mike,
I ended up hitting too many resource constraints with 328P based boards so moved up to STM32 blue pills/black pills with ARM Cortex CPUs - wow! So much faster and so much more resources and actually cheaper and they still support the Arduino "APIs" so all my Arduino software targeting the 328Ps just recompiled with very little change required. So it was a no brainer.
I'll try to find some time to convert @pischky https://github.com/pischky 's patch zip to a PR.
— Reply to this email directly, view it on GitHub https://github.com/mike-matera/ArduinoSTL/issues/43#issuecomment-1004451799, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTXTRQKDJNGE6KWIUCS3LDUUI7LVANCNFSM4I3ZWR7Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
See my fork that supports this.
It should be possible to use Macro "F()" to store strings (const char*) from flash memory (PROGMEM) like Arduinio print/println does. This saves RAM.
cout << F("\r\nSystem halted!") << endl;
The Arduino library uses class __FlashStringHelper in macro F(). I have added (in "ostream")
and
With code from Arduino library file Print.cpp. Have given it a short test and it works on Arduino UNO with current IDE / eclipse.
Will try to attach patch.