![](/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/BlinkLabel.hpp
- Revision:
- 2:dd48e1e59daa
- Parent:
- 1:501a83a5ee9d
--- a/F746_Gui_New/BlinkLabel.hpp Wed Nov 08 11:43:52 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -//----------------------------------------------------------- -// BlinkLabel class -- derived class of Label class -// For displaying error message -// -// 2017/01/25, Copyright (c) 2017 MIKAMI, Naoki -//----------------------------------------------------------- - -#ifndef F746_BLINK_LABEL_HPP -#define F746_BLINK_LABEL_HPP - -#include "Label.hpp" -#include "ResetButton.hpp" - -namespace Mikami -{ - class BlinkLabel : public Label - { - public: - // Constructor - BlinkLabel(uint16_t x, uint16_t y, const string str, - TextAlignMode mode = LEFT, - sFONT &fonts = Font20, - uint32_t textColor = LCD_COLOR_RED, - uint32_t backColor = GuiBase::ENUM_BACK, - uint32_t on = 500, uint32_t off = 200) - : Label(x, y, str, mode, fonts, textColor, backColor) - { - ResetButton reset; - while (true) // Blinking here - { - wait_ms(on); - Draw(backColor); - wait_ms(off); - Draw(textColor); - reset.DoIfTouched(); - } - } - - private: - // disallow copy constructor and assignment operator - BlinkLabel(const BlinkLabel&); - BlinkLabel& operator=(const BlinkLabel&); - }; -} -#endif // F746_BLINK_LABEL_HPP -