|
@@ -9,6 +9,7 @@
|
|
|
#define COLOUR_BG HTML2COLOR(0x202020)
|
|
|
#define COLOUR_1 GFX_BLUE
|
|
|
#define COLOUR_2 GFX_RED
|
|
|
+#define COLOUR_3 GFX_FUCHSIA
|
|
|
|
|
|
#define MIN_U 0
|
|
|
#define MIN_I 0
|
|
@@ -37,7 +38,9 @@ void graph_Draw(uint32_t u_value, uint32_t i_value) {
|
|
|
gdispDrawLine(pos_X, WINDOW_H, pos_X, WINDOW_Y, COLOUR_BG);
|
|
|
|
|
|
// draw new values
|
|
|
- if (u < i) {
|
|
|
+ if (u == i) {
|
|
|
+ gdispDrawLine(pos_X, WINDOW_H-1, pos_X, i, COLOUR_3);
|
|
|
+ } else if (u < i) {
|
|
|
gdispDrawLine(pos_X, WINDOW_H-1, pos_X, i, COLOUR_2);
|
|
|
gdispDrawLine(pos_X, i+1, pos_X, u, COLOUR_1);
|
|
|
} else {
|