Modifications

Sauter à la navigation Sauter à la recherche
Ligne 26 : Ligne 26 :     
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-10.png}}
 
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-10.png}}
  −
== Streamer les données de senseur ==
  −
You can take Quaternion (absolute orientation), Accelerometer, Gyroscope, Magnetometer or GPS Location data from your phone and send it directly to your Arduino from the Controller activity.
  −
  −
By enabling the '''Accelerometer''' field, for example, you should see accelerometer data update in the app:
  −
  −
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-30.jpg}}
  −
  −
The data is parsed in the example sketch and output to the Serial Monitor as follows:
  −
  −
<nowiki>Accel 0.20 -0.51 -0.76
  −
Accel 0.22 -0.50 -0.83
  −
Accel 0.25 -0.51 -0.83
  −
Accel 0.21 -0.47 -0.76
  −
Accel 0.27 -0.48 -0.82</nowiki>
  −
  −
{{ADFImage|Bluefruit-LE-Shield-HIDKeyboard-31.png}}
  −
  −
Note that even though we only print 2 decimal points, the values are received from the App as a full 4-byte floating point.
      
== Le pavé de commande ==
 
== Le pavé de commande ==
29 917

modifications

Menu de navigation