IVP wrote: >> Drawing a line from 1,0 to 1,240 sets bytes 0 to 239 to 0x02, erasing=20 >> the first line >> =20 > > If I understand you, the new data should be IORed with or added to > the existing ? Or 8 lines should be drawn at once with FF ? > > Joe > =20 Assuming that his demo code does actually write to 0 to 239 for the=20 first 8 lines (as opposed to having an actual line algorithm), then he=20 could write a 1 to those locations, then a 3, then a 7, then 0x0F, 0x1F,=20 0x3F, 0x7F and finally 0xFF, then move to the next 8 lines at 240 to=20 479. This would draw the lines 1 at a time, preserving previously drawn=20 lines and confirming that this is, indeed, the problem. Kerry --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .