From e781b274bcf175671a6578cadc5954dba3c3c673 Mon Sep 17 00:00:00 2001 From: hugen79 Date: Sun, 17 Nov 2019 11:30:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=B1=8F=E5=B9=95=E4=B8=8B?= =?UTF-8?q?=E6=96=B9cell=E5=92=8C=E8=8F=9C=E5=8D=95=E5=BA=95=E4=B8=8Bcell?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E5=B8=B8=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 2 +- plot.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index f281aa2d..f17981ba 100644 --- a/main.c +++ b/main.c @@ -2052,7 +2052,7 @@ int main(void) // SPI LCD Initialize ili9341_init(); - ili9341_fill(0, 0, 320, 240, 0x0000); + ili9341_fill(0, 0, LCD_WIDTH, LCD_HEIGHT, 0x0000); //palSetPadMode(GPIOB, 8, PAL_MODE_ALTERNATE(1) | PAL_STM32_OTYPE_OPENDRAIN); //palSetPadMode(GPIOB, 9, PAL_MODE_ALTERNATE(1) | PAL_STM32_OTYPE_OPENDRAIN); diff --git a/plot.c b/plot.c index 13575553..e2ba962b 100644 --- a/plot.c +++ b/plot.c @@ -15,7 +15,7 @@ void markmap_all_markers(void); //uint16_t grid_color = 0x1084; /* indicate dirty cells */ -uint16_t markmap[2][8]; +uint16_t markmap[2][10]; uint16_t current_mappage = 0; int32_t fgrid = 50000000; @@ -753,7 +753,7 @@ static float distance_of_index(int idx) { static inline void mark_map(int x, int y) { - if (y >= 0 && y < 8 && x >= 0 && x < 16) + if (y >= 0 && y < 10 && x >= 0 && x < 16) markmap[current_mappage][y] |= 1<