From: Simon W. <Sim...@pa...> - 2001-01-18 14:58:56
|
Hello all, I've just been having a play with Lcd4Linux and have some comments.... Am I correct (from a very quick scan of the code) that the system relies on 'Flushing' the whole display for each frame, rather than only updating the areas of the screen that actually need updating??? How does implementing a 'dirty' flag (or something), or would this interfere with your clever use of the user defined characters for the bar graphs... Is there an archive of the mailing list somewhere? I'd like to adopt a LCD project for a MP3 player I'm putting together (I've seen LCD Proc but the screen update is too slow), what do you guys think about adjusting the code to read form a keypad??? Finally, never go to a party empty handed. Here's a fix for HD44780.c (from 0.97) to get it displaying correctly on 20x4 (tested) and 16x4 (not tested): ---- code ------ void HD_goto (int row, int col) { int pos; pos=(row%2)*64+col; /* Cope with 16 or 20 cols */ if (row>1) pos+= Lcd.cols; HD_command (0x80|pos, 40); } ---- end code ----- cheers, Simon Wood Hardware Engineer Pace Micro Technology plc Victoria Road, Saltaire, Shipley West Yorkshire, BD18 3LF Tel : +44(0)1274 532000 Fax: +44(0)1274 532029 This E-Mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message. You must not disclose, forward or copy this E-mail or attachments to any third party without the prior consent of the sender. |