Draw line between graphs and waterfall

pull/106/head
Bohdan Kmit 2 years ago
parent bd30ca3823
commit 0608182a0f

@ -614,7 +614,7 @@ extern uint16_t graph_bottom;
//
#define CELLOFFSETX 0
#define AREA_WIDTH_NORMAL (CELLOFFSETX + WIDTH)
#define AREA_HEIGHT_NORMAL ( HEIGHT + 1)
#define AREA_HEIGHT_NORMAL ( HEIGHT)
#define GRID_X_TEXT (AREA_WIDTH_NORMAL - 7*5)

@ -2117,7 +2117,7 @@ static void update_waterfall(void){
int i;
int w_width = area_width < WIDTH ? area_width : WIDTH;
// START_PROFILE;
for (i = CHART_BOTTOM-1; i >=graph_bottom+1; i--) { // Scroll down
for (i = CHART_BOTTOM-1; i >=graph_bottom; i--) { // Scroll down
ili9341_read_memory(OFFSETX, i, w_width, 1, spi_buffer);
ili9341_bulk(OFFSETX, i+1, w_width, 1);
}
@ -2188,7 +2188,7 @@ static void update_waterfall(void){
spi_buffer[j++] = color;
}
}
ili9341_bulk(OFFSETX, graph_bottom+1, w_width, 1);
ili9341_bulk(OFFSETX, graph_bottom, w_width, 1);
// STOP_PROFILE;
}
#if 0

Loading…
Cancel
Save

Powered by TurnKey Linux.