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.
Dependencies: DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos mbed-src
Fork of DMSupport by
Diff: Display/BiosDisplay.h
- Revision:
- 39:e1cb4dd9bfeb
- Parent:
- 31:d47cffcb0a3e
diff -r 420cdc281467 -r e1cb4dd9bfeb Display/BiosDisplay.h
--- a/Display/BiosDisplay.h Wed Apr 15 09:41:56 2015 +0200
+++ b/Display/BiosDisplay.h Tue Apr 28 11:47:20 2015 +0000
@@ -48,7 +48,7 @@
DisplayError init();
// From the Display interface
- virtual DisplayError powerUp(void* framebuffer, Resolution wanted = Resolution_16bit_rgb565);
+ virtual DisplayError powerUp(void* framebuffer, Resolution wanted = Resolution_16bit_rgb565, FrameRate_t rate = FrameRate_Normal);
virtual DisplayError powerDown();
virtual DisplayError backlight(int percent);
virtual uint16_t width();
@@ -84,6 +84,8 @@
// hide assign operator
BiosDisplay& operator=(const BiosDisplay&);
~BiosDisplay();
+
+ uint32_t bpp(Resolution res) { return ((res == Resolution_16bit_rgb565) ? 2 : 4); }
};
#endif /* BIOSDISPLAY_H */
