DISCO-F469NI_Button_and_Slider_Library v1.0

Dependencies:   BSP_DISCO_F469NI LCD_DISCO_F469NI TS_DISCO_F469NI mbed

Committer:
wsteenberg
Date:
Tue Sep 25 12:38:48 2018 +0000
Revision:
0:ebf3f36f3a64
DISCO-F469NI_Button_and_Slider_Library v1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wsteenberg 0:ebf3f36f3a64 1 /*-----------------------------------------------------------
wsteenberg 0:ebf3f36f3a64 2 * F469_GUI Library v1.0
wsteenberg 0:ebf3f36f3a64 3 * Copyright (c) 2018 Wynand Steenberg
wsteenberg 0:ebf3f36f3a64 4 * s216875730@mandela.ac.za
wsteenberg 0:ebf3f36f3a64 5 *
wsteenberg 0:ebf3f36f3a64 6 *
wsteenberg 0:ebf3f36f3a64 7 * Permission is hereby granted, free of charge, to any person obtaining a copy
wsteenberg 0:ebf3f36f3a64 8 * of this software and associated documentation files (the "Software"), to deal
wsteenberg 0:ebf3f36f3a64 9 * in the Software without restriction, including without limitation the rights
wsteenberg 0:ebf3f36f3a64 10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
wsteenberg 0:ebf3f36f3a64 11 * copies of the Software, and to permit persons to whom the Software is
wsteenberg 0:ebf3f36f3a64 12 * furnished to do so, subject to the following conditions:
wsteenberg 0:ebf3f36f3a64 13 *
wsteenberg 0:ebf3f36f3a64 14 * The above copyright notice and this permission notice shall be included in
wsteenberg 0:ebf3f36f3a64 15 * all copies or substantial portions of the Software.
wsteenberg 0:ebf3f36f3a64 16 *
wsteenberg 0:ebf3f36f3a64 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
wsteenberg 0:ebf3f36f3a64 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
wsteenberg 0:ebf3f36f3a64 19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
wsteenberg 0:ebf3f36f3a64 20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
wsteenberg 0:ebf3f36f3a64 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
wsteenberg 0:ebf3f36f3a64 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
wsteenberg 0:ebf3f36f3a64 23 * THE SOFTWARE.
wsteenberg 0:ebf3f36f3a64 24 *-----------------------------------------------------------
wsteenberg 0:ebf3f36f3a64 25 */
wsteenberg 0:ebf3f36f3a64 26
wsteenberg 0:ebf3f36f3a64 27 #ifndef F469_GUI_HPP
wsteenberg 0:ebf3f36f3a64 28 #define F469_GUI_HPP
wsteenberg 0:ebf3f36f3a64 29
wsteenberg 0:ebf3f36f3a64 30 #include "mbed.h"
wsteenberg 0:ebf3f36f3a64 31 #include <string>
wsteenberg 0:ebf3f36f3a64 32 #include "TS_DISCO_F469NI.h"
wsteenberg 0:ebf3f36f3a64 33 #include "LCD_DISCO_F469NI.h"
wsteenberg 0:ebf3f36f3a64 34
wsteenberg 0:ebf3f36f3a64 35
wsteenberg 0:ebf3f36f3a64 36 class GUI
wsteenberg 0:ebf3f36f3a64 37 {
wsteenberg 0:ebf3f36f3a64 38 public:
wsteenberg 0:ebf3f36f3a64 39 static LCD_DISCO_F469NI* GetLcdPtr() { return &lcd_; }
wsteenberg 0:ebf3f36f3a64 40 static TS_DISCO_F469NI* GetTsPtr() { return &ts_; }
wsteenberg 0:ebf3f36f3a64 41
wsteenberg 0:ebf3f36f3a64 42
wsteenberg 0:ebf3f36f3a64 43 protected:
wsteenberg 0:ebf3f36f3a64 44 static LCD_DISCO_F469NI lcd_; // for LCD display
wsteenberg 0:ebf3f36f3a64 45 static TS_DISCO_F469NI ts_; // for touch panel
wsteenberg 0:ebf3f36f3a64 46 };
wsteenberg 0:ebf3f36f3a64 47
wsteenberg 0:ebf3f36f3a64 48 #endif // F469_GUI_HPP