Modifications

Sauter à la navigation Sauter à la recherche
138 octets ajoutés ,  12 novembre 2014 à 07:36
Ligne 33 : Ligne 33 :     
== Ports séries (UART) ==
 
== Ports séries (UART) ==
 +
The Core features three serial ports.
   −
The Core features three serial ports. The first one is a CDC (Communications Device Class) available over the USB port. When configured, it will show up as a virtual COM port on the computer. (usage: Serial.begin(9600);)
+
{{SPARKImage|Spark.IO-Brochage-UART.jpg|480px}}
 +
 
 +
The first one is a CDC (Communications Device Class) available over the USB port. When configured, it will show up as a virtual COM port on the computer. (usage: Serial.begin(9600);)
    
The second one is a hardware USART available via the TX and RX pins on the Core. (usage: Serial1.begin(9600);)
 
The second one is a hardware USART available via the TX and RX pins on the Core. (usage: Serial1.begin(9600);)
   −
The third one is a hardware USART available via the D1(Tx) and D0(Rx) pins on the Core. (usage: Serial2.begin(9600);)
+
The third one is a hardware USART available via the D1(Tx) and D0(Rx) pins on the Core. (usage: <code>Serial2.begin(9600);</code>)
   −
Configuration and use of all of these serial ports is described in the serial functions.
+
Configuration and use of all of these serial ports is described in the [http://docs.spark.io/firmware/#communication-serial serial functions] (''Spark, anglais'').
    
NOTE: Please take into account that the voltage levels on these pins runs at 0V to 3.3V and should not be connected directly to a computer's RS232 serial port which operates at +/- 12V and can damage the Core.
 
NOTE: Please take into account that the voltage levels on these pins runs at 0V to 3.3V and should not be connected directly to a computer's RS232 serial port which operates at +/- 12V and can damage the Core.
    
{{Spark-Core-Materiel-TRAILER}}
 
{{Spark-Core-Materiel-TRAILER}}
29 918

modifications

Menu de navigation