Simple radar simulator. Example of 2D graphics on DISCO-F746NG display.

Dependencies:   BSP_DISCO_F746NG Graphics mbed TS_DISCO_F746NG

Committer:
karpent
Date:
Fri Nov 04 23:07:04 2016 +0000
Revision:
2:8db224cc1fcb
Child:
4:66f13188c26b
Touchscreen support added to change the range and center location.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
karpent 2:8db224cc1fcb 1 /*
karpent 2:8db224cc1fcb 2 TouchScreen.h - Touchscreen
karpent 2:8db224cc1fcb 3
karpent 2:8db224cc1fcb 4 Copyright(c) 2016 karpent at gmail.com, MIT License
karpent 2:8db224cc1fcb 5
karpent 2:8db224cc1fcb 6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"),
karpent 2:8db224cc1fcb 7 to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
karpent 2:8db224cc1fcb 8 and / or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
karpent 2:8db224cc1fcb 9
karpent 2:8db224cc1fcb 10 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
karpent 2:8db224cc1fcb 11
karpent 2:8db224cc1fcb 12 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
karpent 2:8db224cc1fcb 13 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
karpent 2:8db224cc1fcb 14 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
karpent 2:8db224cc1fcb 15 THE USE OR OTHER DEALINGS IN THE SOFTWARE.
karpent 2:8db224cc1fcb 16 */
karpent 2:8db224cc1fcb 17
karpent 2:8db224cc1fcb 18 #pragma once
karpent 2:8db224cc1fcb 19
karpent 2:8db224cc1fcb 20 #include "TS_DISCO_F746NG.h"
karpent 2:8db224cc1fcb 21 #include "RK043FN48H.h"
karpent 2:8db224cc1fcb 22
karpent 2:8db224cc1fcb 23 /// <summary>
karpent 2:8db224cc1fcb 24 /// Touchscreen class
karpent 2:8db224cc1fcb 25 /// </summary>
karpent 2:8db224cc1fcb 26 class TouchScreen : public TS_DISCO_F746NG
karpent 2:8db224cc1fcb 27 {
karpent 2:8db224cc1fcb 28 public:
karpent 2:8db224cc1fcb 29 /// <summary>
karpent 2:8db224cc1fcb 30 /// Initializes a new instance of the <see cref="TouchScreen"/> class.
karpent 2:8db224cc1fcb 31 /// </summary>
karpent 2:8db224cc1fcb 32 TouchScreen(RK043FN48H* display);
karpent 2:8db224cc1fcb 33
karpent 2:8db224cc1fcb 34 /// <summary>
karpent 2:8db224cc1fcb 35 /// Finalizes an instance of the <see cref="TouchScreen"/> class.
karpent 2:8db224cc1fcb 36 /// </summary>
karpent 2:8db224cc1fcb 37 ~TouchScreen();
karpent 2:8db224cc1fcb 38
karpent 2:8db224cc1fcb 39 pPoint virtual DetectTouch(Window screen) = 0;
karpent 2:8db224cc1fcb 40 };
karpent 2:8db224cc1fcb 41