User manual
Copyright © Dr Robot Inc. 2005
63
Remarks:
1. Before calling SavePhotoAsBMP, the TakePhoto command needs to be called to
request image taken.
2. When the image data arrive, the call back event “ImageEvent” will be fired
3. The cause of “failure to save” could be caused because the TakePhoto command
was not sent or the file name / path is invalid.
IV.1.3 LCD Display
123 void LcdDisplayPMB(LPCTSTR bmpFileName);
Description:
LcdDisplayPMB displays the image data in the file
bmpFileName
(BMP format) on the
graphic LCD connected to the Multimedia Controller (PMB5010).
Syntax: LcdDisplayPMB (bmpFileName);
Parameter: LPCTSTR bmpFileName; // Full path of the BMP file for displaying
Return value: void
Remarks:
The graphic LCD display is mono with dimension of 128 pixels by 64 pixels. The bmp image
must be 128x64 pixels in mono.
IV.2 Events
This section documents the two Event mechanisms. When the relevant data arrive from the WiRobot
PMB5010 system, relevant event will be fired, user could write his / her periodic data processing
routine in the relevant event call back function.
124 ImageEvent
Description:
When the image data arrive, this event will be triggered.
125 VoiceSegmentEvent
Description:
When the audio data arrive, this event will be triggered.