Go Down

Topic: Afficher variable sur LCD i2c (Read 2622 times) previous topic - next topic

barbudor

Ce code ci se comiple et s'exécute sans problème chez moi

Code: [Select]
#include <stdlib.h>

float centigrade = 0;
char centigrade_str[12];

void setup()
{
Serial.begin(19200);
centigrade = 123.456;
dtostrf(centigrade, 3, 3, centigrade_str);
Serial.println( centigrade_str );
delay(1000);
}

void loop()                                                     
{
}


Quel IDE ? Je suis en 1.0
Barbuduino: Arduino sur Breadboard & VinciDuino: Clone Leonardo // WR703: Mini-routeur hacké // LauchPad MSP430 et Stellaris // Panda II Arduino-like .NetMF sous VisualC#
RTFC: Read That F.....g Code / RTFD: Read That F.....g Doc / RTFDS: Read That F.....g DataSheet / RTFS: Read That F.....g Schematic / Wot da ya wanna D.I.Y. today ?

Mike74


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy