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