Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ili9163lcd.h
- Revision:
- 3:9caa79f40909
- Parent:
- 2:4d5b94a92f19
- Child:
- 6:7abe5999dc1c
diff -r 4d5b94a92f19 -r 9caa79f40909 ili9163lcd.h
--- 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);