Saltar al contenido ForoHackers

My ten-pixel penguin has the right trousers but its beak is mysteriously elsewhere

Linux embebidoFirmware
#10935 · · Citar · Denunciar

I did remember February's row-padding lesson. Ten pixels across, three rows, two bytes per row, six bytes exactly. So why does a tiny beak drawn in the first column of our audio-box display appear in the eighth? The next row starts in the right place. This particular bird can turn its head without moving its feet.

#11101 · · Citar · Denunciar

Try one row containing precisely one dot. Your exporter might call the first column bit zero and write 00000001. If the display calls the leftmost pixel bit seven, that lights column eight instead. Padding fixes where the next row starts; it won't change what either side calls 'left'.

#11102 · · Citar · Denunciar

Confirmed. The display expects its leftmost pixel in the most significant bit. A first byte of 10000000 lights column one. So I reverse the bit order inside each byte when exporting, not the order of the two bytes.

#11103 · · Citar · Denunciar

Try column nine too. That's the first dot of the second byte. A bird that looks right only on the left half of the display is going to start a much worse argument about trousers.

#11104 · · Citar · Denunciar

It appears in column nine now. Column ten works too. The artist would like me to know that the trousers were supposed to be its tail.

#11105 · · Citar · Denunciar

Imo let it keep the trousers. Formal firmware for evening performances.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder