From 443ea8b9e5ea66495219396e71ff204884319f39 Mon Sep 17 00:00:00 2001 From: MultiMote Date: Sat, 7 Jan 2023 23:50:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B2=20=D1=81=D1=82=D0=B0=D1=82=D1=8C=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/posts/avr-siemens-lcd/index.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/content/posts/avr-siemens-lcd/index.md b/content/posts/avr-siemens-lcd/index.md index 6a96e42..e679603 100644 --- a/content/posts/avr-siemens-lcd/index.md +++ b/content/posts/avr-siemens-lcd/index.md @@ -526,7 +526,7 @@ void LcdClear ( void ) // Оптимизация от Jakub Lasinski (March 14 2009) memset( LcdCache, 0x00, LCD_CACHE_SIZE ); - + // Сброс указателей границ в максимальное значение LoWaterMark = 0; HiWaterMark = LCD_CACHE_SIZE - 1; @@ -996,7 +996,7 @@ byte LcdCircle(byte x, byte y, byte radius, LcdPixelMode mode) yc = radius; p = 3 - (radius<<1); - while (xc <= yc) + while (xc <= yc) { LcdPixel(x + xc, y + yc, mode); LcdPixel(x + xc, y - yc, mode); @@ -1157,10 +1157,10 @@ void LcdImage ( const byte *imageData ) // // Копируем данные из массива в кэш // LcdCache[LcdCacheIdx] = pgm_read_byte( imageData++ ); // } - + // Оптимизация от Jakub Lasinski (March 14 2009) memcpy_P( LcdCache, imageData, LCD_CACHE_SIZE ); // Тоже самое что и выше, но занимает меньше памяти и быстрее выполняется - + // Сброс указателей границ в максимальное значение LoWaterMark = 0; HiWaterMark = LCD_CACHE_SIZE - 1; @@ -1199,4 +1199,6 @@ int main() { } ``` -![|400](helloworld.jpg) ![|400](lines.jpg) \ No newline at end of file +![helloworld](helloworld.jpg) + +![lines](lines.jpg) \ No newline at end of file