This wiki is out of date, use the continuation of this wiki instead

LCD SetBitmap

From FenixWiki

Revision as of 19:31, 26 December 2007 by Sandman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Up to LCD.DLL Functions



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() •
Personal tools