<commit_before># Prtcl spec

## General

Each prtcl message has 5 bytes. 2 bytes are delimiting command bytes which ensure that the udp packet is not completely broken.
The remaining 3 bytes are command specific payload.

## Commands

| sender     | cmd             | cmd byte | payload                                                  | payload bytes example |
|------------|-----------------|----------|----------------------------------------------------------|-----------------------|
| controller | keep alive      | 0x10     | buttons state (byte 0)                                   | 0x11 0x10 0xXX        |
| controller | buttons changed | 0x11     | new buttons state (byte 0) + button change mask (byte 1) | 0x11 0xXX 0xXX        |
| server     | set led 0       | 0x20     | r (byte 0) + g (byte 1) + b (byte 2)                     | 0xFF 0xFF 0xFF        |
| server     | set led 1       | 0x21     | r (byte 0) + g (byte 1) + b (byte 2)                     | 0xFF 0x00 0x00        |<commit_msg>Correct prtcl spec<commit_after># Prtcl spec

## General

Each prtcl message has 6 bytes. 2 bytes are delimiting command bytes which ensure that the udp packet is not completely broken.
The remaining 4 bytes are command specific payload.

## Commands

| sender     | cmd             | cmd byte | payload                                                                 | payload bytes example |
|------------|-----------------|----------|-------------------------------------------------------------------------|-----------------------|
| controller | keep alive      | 0x10     | buttons state (byte 0)                                                  | 0x11 0x10 0xXX 0xXX   |
| controller | buttons changed | 0x11     | new buttons state (byte 0) + button change mask (byte 1)                | 0x11 0xXX 0xXX 0xXX   |
| server     | set led 0       | 0x20     | r (byte 0) + g (byte 1) + b (byte 2) + brightness (byte 3, 5 bits, lsb) | 0xFF 0xFF 0xFF 0x1F   |
| server     | set led 1       | 0x21     | r (byte 0) + g (byte 1) + b (byte 2) + brightness (byte 3, 5 bits, lsb) | 0xFF 0x00 0x00 0x1F   |
{'fraction_non_alphanumeric': 0.19185220274751302, 'fraction_numerical': 0.0502131691141639, 'mean_word_length': 1.166153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2570887', 'n_tokens_mistral': 635, 'n_tokens_neox': 528, 'n_words': 228}