Demo to control 4 LEDs
Dependencies: BSP_DISCO_F469NI mbed
TS_F469/TS_F469.h
- Committer:
- Faberge
- Date:
- 2017-10-31
- Revision:
- 2:e6fc24fbd86c
- Parent:
- 0:e06404fdff2f
File content as of revision 2:e6fc24fbd86c:
/* * TS_F469.h * * Copyright 2017 Faberge@TsarTeam * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef TS_F469_H #define TS_F469_H #include "stm32469i_discovery_ts.h" class TouchScreen { private: static const uint16_t DIMX = 800; static const uint16_t DIMY = 480; TS_StateTypeDef TS_State; public: TouchScreen(); bool getState(); uint16_t getX() {return TS_State.touchX[0];} uint16_t getY() {return TS_State.touchY[0];} }; #endif