| Ligne 117 : |
Ligne 117 : |
| | } | | } |
| | } | | } |
| | + | </nowiki> |
| | + | |
| | + | == Résultat == |
| | + | La LED 13 s'allume et s'éteint lorsque la commande "on" ou "off" est reçue. |
| | + | |
| | + | Outre cette modification de la Pin 13, les messages suivants sont également visible sur le moniteur série. |
| | + | |
| | + | La séquence de commandes (chacune terminée par la touche Entrée) utilisé dans cet exemple est: |
| | + | # on |
| | + | # off |
| | + | # test |
| | + | <nowiki> |
| | + | Serial communication is ready. |
| | + | SerialInByte: 111, Buffer o |
| | + | SerialInByte: 110, Buffer on |
| | + | ProcessCmd for [on] |
| | + | on |
| | + | SerialInByte: 111, Buffer o |
| | + | SerialInByte: 102, Buffer of |
| | + | SerialInByte: 102, Buffer off |
| | + | ProcessCmd for [off] |
| | + | off |
| | + | SerialInByte: 116, Buffer t |
| | + | SerialInByte: 101, Buffer te |
| | + | SerialInByte: 115, Buffer tes |
| | + | SerialInByte: 116, Buffer test |
| | + | ProcessCmd for [test] |
| | + | unknown command! |
| | </nowiki> | | </nowiki> |