e-Paper icon indicating copy to clipboard operation
e-Paper copied to clipboard

Selection of correctly working partial sizes..

Open randohinn opened this issue 5 years ago • 4 comments
trafficstars

I have a bit of a problem deciding on what size to use for my partials, so that the (x + y * EPDWIDTH) / 8 array location finding formula would not give me a float (flooring and rounding misplaces the pixel or causes weird anomalies). For example, trying to set pixel 20,20 of a 40x40 partial.. Or of a 44x44 partial :/ What's the correct method for making sure in a partial, all pixels are settable?

randohinn avatar Sep 07 '20 11:09 randohinn

@randohinn did you ever solve this?

objectiveSee avatar Nov 25 '20 00:11 objectiveSee

@randohinn did you ever solve this?

Not fully no, I guess you either need some rouning for the coordinates or I'm missing something when it comes to alignment...

randohinn avatar Nov 25 '20 09:11 randohinn

Maybe @waveshare @hnwangkg-ezio know anything

randohinn avatar Nov 29 '20 14:11 randohinn

@randohinn did you ever solve this?

@objectiveSee I think I found what I was stupidly ignoring on first implementation of this driver. See https://github.com/waveshare/e-Paper/blob/7003be16721b5f328e21ada1dec18727085c0144/Arduino/epd2in9bc/epdpaint.cpp#L34

randohinn avatar Dec 31 '21 23:12 randohinn