VL53L4CD on Arduino Uno

OP #7596082
Lesenswert?
• ▲
▼

Hello fellow forum members,

I've been experimenting with the Example Program for VL53L4CD on Arduino Uno to measure distances. While the program is functional, it doesn't quite meet my requirements. Specifically, I'm aiming to display distance values with at least two decimal places. I've attempted to modify both the header file and the main program to use floating-point numbers, but unfortunately, it didn't yield the desired outcome.

Could anyone advise me on how to achieve this? Is it possible to obtain decimal precision with this setup, and if so, what steps should I take to implement it successfully?

Thank you in advance for your assistance.

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.