Gitakichi Tokyo / Mbed 2 deprecated ATM0177B3A

Dependencies:   mbed

Revision:
3:9caa79f40909
Parent:
2:4d5b94a92f19
Child:
6:7abe5999dc1c
--- a/ili9163lcd.h	Fri Jan 01 13:57:57 2021 +0000
+++ b/ili9163lcd.h	Sat Jan 02 01:42:56 2021 +0000
@@ -120,7 +120,7 @@
 // Translates a 3 byte RGB value into a 2 byte value for the LCD (values should be 0-31)
 inline uint16_t decodeRgbValue(uint8_t r, uint8_t g, uint8_t b)
 {
-    return (b << 11) | (g << 6) | (r);
+    return (r << 11) | (g << 6) | (b);
 }   
 
 // This routine takes a row number from 0 to 20 and
@@ -141,6 +141,8 @@
 void lcdInitialise(uint8_t orientation);
 
 void lcdClearDisplay(uint16_t colour);
+void grade(void);
+void colorbar(void);
 void lcdPlot(uint8_t x, uint8_t y, uint16_t colour);
 void lcdLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t colour);
 void lcdRectangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t colour);