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