-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cout should support const char arrays from flash #43
Comments
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
|
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. |
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
<#43 (comment)>,
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:
***@***.***>
--
----------------------------------------------------------------
Martin Pischky, Oisseler Strasse 1C, 30559 Hannover, Germany
http://www.pischky.de ***@***.***
tel: +49 511 7000665 mobile: +49 151 11592222
----------------------------------------------------------------
|
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.
The text was updated successfully, but these errors were encountered: