LOCODUINO

Aide
Forum de discussion
Dépôt GIT Locoduino
Flux RSS

vendredi 26 avril 2024

Visiteurs connectés : 25

Bibliothèque Serial

. Par : Dominique, Guillaume, Jean-Luc

Explications Bibliothèque officielle faisant partie de l’IDE Arduino, elle facilite l’écriture du code pour communiquer avec un autre Arduino ou un ordinateur. Nous allons donc voir les différentes commandes de cette bibliothèque. Nous n’allons pas ici mettre en pratique ces commandes, ce sera le sujet d’autres articles. Installation (...)

Retourner à l'article

Vous répondez à :

Bibliothèque Serial 14 février 2020 17:12, par msport

Bonjour,
je n’ai pas la réponse quant au comment faire (à priori, ce n’est pas la bonne solution).
Mais l’explication pourquoi ça bloque :
There is no check if serial is enabled. So all you print() statements will execute. And they will fill the data register and the buffer which is not a problem. UNTIL the buffer is full ! Once the Serial buffer is full the write will wait until there is room in the buffer aka blocking the program. And because the buffer is not emptied the program will hold there...

Voir en ligne : Serial buffer is full

Qui êtes-vous ?
Votre message

Pour créer des paragraphes, laissez simplement des lignes vides.

Lien hypertexte

(Si votre message se réfère à un article publié sur le Web, ou à une page fournissant plus d’informations, vous pouvez indiquer ci-après le titre de la page et son adresse.)

15 Messages

Rubrique Bibliothèques

Bibliothèque Accessories (1)

Bibliothèque Accessories (2)

Un décodeur d’accessoires universel (1)

Un décodeur d’accessoires universel (2)

Un décodeur d’accessoires universel (3)

Bibliothèque LcdUi (1)

Bibliothèque LcdUi (2)

Bibliothèque LightEffect

La bibliothèque ACAN (2)

La bibliothèque ACAN (1)

Bibliothèque DcDccNanoController

Bibliothèque DCCpp

Bibliothèque Commanders

La bibliothèque SlowMotionServo

Bibliothèque EEPROMextent

Bibliothèque MemoryUsage

La bibliothèque ScheduleTable

Bibliothèque LCD

Bibliothèque Wire : I2C

Bibliothèque EEPROM

Bibliothèque Serial

Bibliothèque SoftWare Serial

La bibliothèque Servo

Les derniers articles

Bibliothèque LightEffect


Christian

La bibliothèque ACAN (2)


Jean-Luc

La bibliothèque ACAN (1)


Jean-Luc

La bibliothèque SlowMotionServo


Jean-Luc

Bibliothèque DCCpp


Thierry

Bibliothèque DcDccNanoController


Thierry

Bibliothèque LcdUi (2)


Thierry

Bibliothèque LcdUi (1)


Thierry

Bibliothèque Accessories (2)


Thierry

Bibliothèque Accessories (1)


Thierry

Les articles les plus lus

Un décodeur d’accessoires universel (1)

Bibliothèque Wire : I2C

Bibliothèque Commanders

Bibliothèque DCCpp

La bibliothèque ACAN (1)

La bibliothèque Servo

Bibliothèque SoftWare Serial

Bibliothèque LCD

Bibliothèque MemoryUsage

Bibliothèque DcDccNanoController