<commit_before>## External pinout communication
On the iMX 6SoloX we can communicate with external pheriperials in different modes.

<img style="width:400px; height:218px" src="../img/08_arduino_serial.png">

The most common is the Serial object. 

```bash
Serial.begin(115200);

Serial.write('hello');
Serial.print(" ");
Serial.println("world");
```

This signals are available on pins 0 and 1 of the pinout.

CAREFUL: This are not connected with A9 Linux/Android side but allows only to communicate with an external device. 

## Internal communication
To communicate beetwen the two SoloX core we implemented another dedicated object "SerialDebug".
It is a virtualized serial that uses the shared memory to exchange datas on chip.


<img style="width:400px; height:218px" src="../img/08_a9_m4_serial.png">

```bash
SerialDebug.begin(115200);

SerialDebug.write('Hello');
SerialDebug.print(" ");
SerialDebug.println("A9 core!");
```

It' possible to access this serial by A9 side on device:
```bash
/dev/ttyMCC
```
<commit_msg>Update 03_Communication.md<commit_after>## Internal communication
To communicate beetwen the two SoloX core we implemented the dedicated object "Serial".
It is a virtualized serial that uses the shared memory to exchange datas on chip.

<img style="width:400px; height:218px" src="../img/08_a9_m4_serial.png">

```bash
Serial.begin(115200);

Serial.write('Hello');
Serial.print(" ");
Serial.println("A9 core!");
```

It' possible to access this serial by A9 side on device:
```bash
/dev/ttyMCC
```

## External pinout communication
On the iMX 6SoloX we can communicate with external pheriperials in different modes.

<img style="width:400px; height:218px" src="../img/08_arduino_serial.png">

The Serial0 object allows to read and write data on pins 0 /1 of external pinout. 

```bash
Serial0.begin(115200);

Serial0.write('hello');
Serial0.print(" ");
Serial0.println("world");
```

This signals are available on pins 0 and 1 of the pinout.

CAREFUL: This are not connected with A9 Linux/Android side but allows only to communicate with an external device. 

{'fraction_non_alphanumeric': 0.11212266411116435, 'fraction_numerical': 0.03881169142309535, 'mean_word_length': 5.177514792899408, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1880869', 'n_tokens_mistral': 692, 'n_tokens_neox': 613, 'n_words': 242}