-antihorario y recorrer por filas de arriba hacia abajo (agrupando por bytes).
-
- 7 6 5 4 3 2 1 0 cols filas 7 6 5 4 3 2 1 0
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-7 | | | | | | | | | 0 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-6 | | | | | | | | | 1 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-5 | | | | | | | | | 2 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-4 | | | | | | | | | 3 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ ======> +---+---+---+---+---+---+---+---+
-3 | | | | | | | | | 4 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-2 | | | | | | | | | 5 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-1 | | | | | | | | | 6 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-0 | | | | | | | | | 7 | | | | | | | | |
- +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+
-filas cols
-
-Quedando por resultado las columnas desde la 0 a la 7 en cada byte del stream de
-bits:
-
-+-----+-----+-----+-----+-----+-----+-----+-----+
-| 7,0 | 6,0 | 5,0 | 4,0 | 3,0 | 2,0 | 1,0 | 0,0 | byte 0 == col 0
-+-----+-----+-----+-----+-----+-----+-----+-----+
-
-+-----+-----+-----+-----+-----+-----+-----+-----+
-| 7,1 | 6,1 | 5,1 | 4,1 | 3,1 | 2,1 | 1,1 | 0,1 | byte 1 == col 1
-+-----+-----+-----+-----+-----+-----+-----+-----+
-
-etc., etc., etc.
+horario y recorrer por filas de arriba hacia abajo (agrupando por bytes).
+
+Por ejemplo:
+
+
+0 columna 15
+
+0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 fila 0
+0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 fila 1
+0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 fila 2
+0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 fila 3
+1 1 0 0 0 1 1 0 0 1 1 0 0 0 1 1 fila 4
+1 1 0 0 0 1 1 0 0 1 1 0 0 0 1 1 fila 5
+1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 fila 6
+1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 fila 7
+1 1 0 0 1 0 0 0 0 0 0 1 0 0 1 1 fila 8
+1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 fila 9
+1 1 0 0 0 1 1 1 1 1 1 0 0 0 1 1 fila 10
+1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 fila 11
+0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 fila 12
+0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 fila 13
+0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 fila 14
+0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 fila 15
+
+ |
+ |
+ V
+
+15 fila 0
+/--------------/--------------/
+ HIGH LOW
+
+0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 columna 0
+0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 columna 1
+0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 columna 2
+0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 columna 3
+1 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 columna 4
+1 1 0 0 0 1 1 0 0 0 1 1 0 0 1 1 columna 5
+1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 columna 6
+1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 1 columna 7
+1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 1 columna 8
+1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 columna 9
+1 1 0 0 0 1 1 0 0 0 1 1 0 0 1 1 columna 10
+1 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 columna 11
+0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 columna 12
+0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 columna 13
+0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 columna 14
+0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 columna 15
+
+
+Para serializarlo se convierte en este stream de bytes (fila;columna):
+
+/-------------------------- byte 0 -----------------------------/
++-------+-------+-------+-------+-------+-------+-------+-------+
+| cols7 | cols6 | cols5 | cols4 | cols3 | cols2 | cols1 | cols0 | == cant. cols
++-------+-------+-------+-------+-------+-------+-------+-------+
+
+/-------------------------- byte 1 -----------------------------/
++-------+-------+-------+-------+-------+-------+-------+-------+
+| 8;0 | 9;0 | 10;0 | 11;0 | 12;0 | 13;0 | 14;0 | 15;0 | == HIGH(col0)
++-------+-------+-------+-------+-------+-------+-------+-------+
+
+/-------------------------- byte 2 -----------------------------/
++-------+-------+-------+-------+-------+-------+-------+-------+
+| 0;0 | 1;0 | 2;0 | 3;0 | 4;0 | 5;0 | 6;0 | 7;0 | == LOW(col0)
++-------+-------+-------+-------+-------+-------+-------+-------+
+
+...
+
+/-------------------------- byte 31 ----------------------------/
++-------+-------+-------+-------+-------+-------+-------+-------+
+| 8; 5 | 9;15 | 10;15 | 11;15 | 12;15 | 13;15 | 14;15 | 15;15 | == HIGH(col15)
++-------+-------+-------+-------+-------+-------+-------+-------+
+
+/-------------------------- byte 32 ----------------------------/
++-------+-------+-------+-------+-------+-------+-------+-------+
+| 0;15 | 1;15 | 2;15 | 3;15 | 4;15 | 5;15 | 6;15 | 7;15 | == LOW(col15)
++-------+-------+-------+-------+-------+-------+-------+-------+
+