- This wiki is out of date, use the continuation of this wiki instead
LCD SetBitmap
From FenixWiki
(Difference between revisions)
Revision as of 19:31, 26 December 2007 (edit) Sandman (Talk | contribs) (New page: Category:functions Category:lcddll Category:dll '''Up to LCD.DLL Functions''' ---- ==Definition== '''INT''' LCD_SetBitmap ( <'''INT''' device> , ...) ← Previous diff |
Current revision (19:31, 26 December 2007) (edit) (undo) Sandman (Talk | contribs) (New page: Category:functions Category:lcddll Category:dll '''Up to LCD.DLL Functions''' ---- ==Definition== '''INT''' LCD_SetBitmap ( <'''INT''' device> , ...) |
Current revision
Contents |
[edit] Definition
INT LCD_SetBitmap ( <INT device> , <INT priority> , <BYTE POINTER map> )
Sets the bitmap of the device to a certain map with a certain priority.
[edit] Parameters
INT device | - Number of the device. |
INT priority | - The priority of the bitmap (see notes). |
BYTE POINTER map | - Pointer to a 160x43 byte array. |
[edit] Returns
INT : LCD.DLL Errorcodes
LCD_ERROR_NONE | - 0 | - No error. |
LCD_ERROR_SERVICEINACTIVE | - -14 | - The service is inactive. |
LCD_ERROR_DEVICENOTCONNECTED | - -21 | - Device not connected. |
LCD_ERROR_INVALIDPARAMETER | - -22 | - Invalid parameter. |
[edit] Notes
- Multiple priorities can be used:
LCD_PRIORITY_IDLE_NO_SHOW | - Lowest priority, disable displaying. Use this priority when you don’t have anything to show. |
LCD_PRIORITY_BACKGROUND | - Priority used for low priority items. |
LCD_PRIORITY_NORMAL | - Normal priority, to be used by most applications most of the time. |
LCD_PRIORITY_ALERT | - Highest priority. To be used only for critical screens, such as "your CPU temperature is too high" |
- One can use map_buffer() to obtain a byte pointer to a map. Make sure this map is of size 160x43 and it has a color depth of 8.
LCD.DLL Functions | |
• LCD_About() • LCD_Close() • LCD_Devices() • LCD_GetDepth() • LCD_GetHeight() • LCD_GetNumButtons() • LCD_GetWidth() • LCD_Init() • LCD_IntVersion() • LCD_Open() • LCD_Quit() • LCD_ReadButton() • LCD_ReadButtons() • LCD_SetBitmap() • LCD_Version() • |
Categories: Functions | Lcddll | Dll