Bonjour,
serait il possible d'avoir les sources de l'interface en version android 2.2 ?
merci
patk29
Inscrit(e) (le) 01 févr. 2012Déconnecté Dernière activité avril 13 2012 10:22
patk29 n'a pas encore ajouté d'ami.
11 avril 2012 - 08:49
20 février 2012 - 06:13
16 février 2012 - 06:17
07 février 2012 - 02:57
05 février 2012 - 11:25
char inChar; // variable to receive data from the serial port int ledpin = 13; // LED connected to pin 48 (on-board LED) void setup() { pinMode(ledpin, OUTPUT); // pin 48 (on-board LED) as OUTPUT Serial.begin(9600); // start serial communication at 9600bps } void loop() { if( Serial.available() ) // if data is available to read { inChar = (char)Serial.read(); // read it and store it in 'inChar' Serial.println(inChar); } if( inChar == 'H' ) // if 'H' was received { digitalWrite(ledpin, HIGH); // turn ON the LED } else { digitalWrite(ledpin, LOW); // otherwise turn it OFF } delay(100); // wait 100ms for next reading }