Giter VIP home page Giter VIP logo

Comments (5)

per1234 avatar per1234 commented on August 21, 2024

Hi @NoSmoke999. I'm guessing you're using one of the AVR boards like the Uno, classic Nano, Pro Mini, Leonardo, Micro, or Mega. Is that correct?

If so, I think the situation is discussed here: arduino/ArduinoCore-avr#293

from arduino_debugutils.

NoSmoke999 avatar NoSmoke999 commented on August 21, 2024

Hey, correct - using a Uno. The discussion in the link you provided is way above my pay grade so I'll just assume for now that floating pt print can't be done now on an AVR board(?). Anyhow, thank you for the info. :)

PS: If Serial.print(pi); will print the floating pt #, why can't DebugUtils?

from arduino_debugutils.

klodoma avatar klodoma commented on August 21, 2024

It's ok not to work and it makes sense.
It should be made clear in the library description for which Arduino boards it works, not to use it on Uno.

from arduino_debugutils.

klodoma avatar klodoma commented on August 21, 2024

This seems to be a good way to output floats on nano

float temp=1.2345;
Debug.print(DBG_INFO, "Temp: %s", String(temp, 2).c_str());

from arduino_debugutils.

aentinger avatar aentinger commented on August 21, 2024

Closed due to #26 .

from arduino_debugutils.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.