![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
CQエレクトロニクス・セミナ「実習・マイコンを動かしながら学ぶディジタル・フィルタ」で使うプログラムを,入力として STM32F746 の内蔵 ADC を使うように変更したもの. http://seminar.cqpub.co.jp/ccm/ES18-0020
Dependencies: mbed Array_Matrix BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG
Diff: F746_Gui_New/GuiBase.cpp
- Revision:
- 2:dd48e1e59daa
- Parent:
- 1:501a83a5ee9d
--- a/F746_Gui_New/GuiBase.cpp Wed Nov 08 11:43:52 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -//----------------------------------------------------------- -// GuiBase class (abstract base class) -// -// 2016/03/29, Copyright (c) 2016 MIKAMI, Naoki -//----------------------------------------------------------- - -#include "GuiBase.hpp" - -namespace Mikami -{ - GuiBase::GuiBase( - uint16_t x, uint16_t y, sFONT &fonts, - uint32_t textColor, uint32_t backColor, - uint32_t createdColor, uint32_t touchedColor, - uint32_t inactiveColor, uint32_t inactiveTextColor) - : X_(x), Y_(y), FONTS_(&fonts), - TEXT_COLOR_(textColor), BACK_COLOR_(backColor), - CREATED_COLOR_(createdColor), - TOUCHED_COLOR_(touchedColor), - INACTIVE_COLOR_(inactiveColor), - INACTIVE_TEXT_COLOR_(inactiveTextColor) - { - if (first_) - { - lcd_.Clear(backColor); - first_ = false; - } - } - - // If panel touched, return true - bool GuiBase::PanelTouched() - { - ts_.GetState(&state_); - return (bool)(state_.touchDetected); - } - - LCD_DISCO_F746NG GuiBase::lcd_; - TS_DISCO_F746NG GuiBase::ts_; - - TS_StateTypeDef GuiBase::state_; - - bool GuiBase::multiTouch_ = false; - bool GuiBase::first_ = true; -}