dtostrf() on D21G

The dtostrf() function (to convert float to string) is not included in the standard arduino.h in the D21G core.

This is probably due to memory size considerations, or it could just be added.

Anyhow, after a bit of search I solved this issue by adding the correct include:

#include <avr/dtostrf.h>

Hope this is helpful

Stefano Giuseppe Bonvini
Stefano Giuseppe Bonvini
107
| 4 1 3
Asked on 1/26/18, 11:57 AM
1
vote
2301 Views

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

41 follower(s)

Stats

Asked: 1/26/18, 11:57 AM
Seen: 2301 times
Last updated: 1/26/18, 11:58 AM