wb32_drawImage 有個小 BUG



  • wb32_drawImage有個bug,請幫忙修正:

    在 copy buffer 至 LCD時,每次處理 64個 "點",因顏色為2byte, 故每個 page

    copy 128 byte, 但最後一組零星 pixel data (未滿64 pixel)時, byte 數 未 x 2。


  • wbo

    @eddy-paung

    感謝指正!真的弄錯了,有兩個小於64點的圖元的寫入長度有誤,會立即更新!謝謝!

            while (c > 64) {
                lcd_data((uint8_t * )(data+n),128);
                n+=64;
                c-=64;
            }
            lcd_data((uint8_t * )(data+n), c*2); // 更正 length 為 c*2,感謝 eddy-paung 指正

Log in to reply
 

Looks like your connection to WiFiBoy.Club was lost, please wait while we try to reconnect.