Pages: 1 [2]   Go Down
Author Topic: Afficher variable sur LCD i2c  (Read 1676 times)
0 Members and 1 Guest are viewing this topic.
Ile-de-France (92 sud), France
Offline Offline
Edison Member
*
Karma: 23
Posts: 2054
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:
#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
Logged

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 ?

Lausanne
Offline Offline
Full Member
***
Karma: 0
Posts: 114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ide 0022    smiley
Logged

Pages: 1 [2]   Go Up
Jump to: