DISCO_F746NG_Button_and_Slider_Library v1.0

Dependencies:   BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed

Committer:
wsteenberg
Date:
Tue Sep 25 12:41:25 2018 +0000
Revision:
0:151a96a0fc95
DISCO_F746NG_Button_and_Slider_Library v1.0

Who changed what in which revision?

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