A basic graphics package for the LPC4088 Display Module.

Dependents:   lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more

Fork of DMBasicGUI by EmbeddedArtists AB

Application/AppColorPicker.h

Committer:
embeddedartists
Date:
2014-12-11
Revision:
0:4977187e90c7
Child:
1:46c8df4608c8

File content as of revision 0:4977187e90c7:


#ifndef APP_COLORPICKER_H
#define APP_COLORPICKER_H

#include "App.h"
#include "DMBoard.h"
#include "lpc_swim.h"
#include "Button.h"

/**
 * LcdController example
 *
 * @code
 * #include "mbed.h"
 * #include "LcdController.h"
 *
 * LcdController::Config innolux(
 *        45,
 *        17,
 *        2,
 *        800,
 *        22,
 *        22,
 *        2,
 *        480,
 *        false,
 *        false,
 *        true,
 *        true,
 *        true,
 *        LcdController::Bpp_16_565,
 *        36000000,
 *        LcdController::Tft,
 *        false);
 *
 * int main(void) {
 *    LcdController lcd;
 *
 *    lcd.open(&innolux);
 *    lcd.setFrameBuffer(frameBuffer);
 *    lcd.setPower(true);
 *
 *    // draw on the frame buffer
 *    ...
 * }
 * @endcode
 */
class AppColorPicker : public App {
public:

	AppColorPicker();
	~AppColorPicker();

    virtual bool setup();
    virtual void runToCompletion();
    virtual bool teardown();

private:
    Display* _disp;
    SWIM_WINDOW_T* _win;
    SWIM_WINDOW_T* _colorwin;
    void* _fb;
    Button* _btn;

    void draw();
};

#endif