Skip to content

Conversation

@drmpf
Copy link
Contributor

@drmpf drmpf commented May 13, 2021

User requested SafeString library support be added for this project.
https://forum.arduino.cc/t/libraries-updated-to-support-new-rp2040-based-boards-raspberry-pi-pico-etc/860353/3
Current SafeString library works for Arduino Mbed OS RP2040 V2.0.0 board install

This pull request fixes missing Printable.h file
But in order to complete adding the support need a unique define (-D... = .. ) that can be detected by SafeString.h so that the
necessary
namespace arduino {
can be set
Arduino Mbed OS RP2040 V2.0.0 has a -DARDUINO_ARCH_MBED_RP2040 define

Can you add a -D to your compile line (and when Arduino detects libraries)
Also dtostrf( ) declaration not found by SafeString library (works with Arduino pico, fixed by an extern ... in SafeString.h )

Added Printable.h in dir where it can be found
Still need a unique -D... in the compile cmd so can know to add
namespace arduino {
to SafeString.h
@earlephilhower
Copy link
Owner

earlephilhower commented May 13, 2021

I've submitted the -D additions with
PowerBroker2/SafeString#35

earlephilhower added a commit that referenced this pull request May 13, 2021
Per #130 request, the dtostrf() definition and others were not visible.
earlephilhower added a commit that referenced this pull request May 13, 2021
Per #130 request, the dtostrf() definition and others were not visible.
@earlephilhower
Copy link
Owner

#131 adds the non ISO stuff to standard Arduino includes, so covers dtostrf, even though I don't see it used...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants