Skip to the content ForoHackers
Log inJoin

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

Embedded LinuxFirmware
#10935 · · Quote · Report

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 · · Quote · Report

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 · · Quote · Report

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 · · Quote · Report

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 · · Quote · Report

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 · · Quote · Report

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

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply