Monochrome display sample with MIP8F_SPI(ver 2.0).
Fork of MIP8f_FRDM_MonochromeDisplay_sample by
Introduction
This Sample code is monochrome display version . Monocrome display is 1bit transfer and high speed refresh mode. A only Green subpixel of bitmap data is transfered.
Other information , please refer to https://os.mbed.com/teams/JapanDisplayInc/code/MIP8f_FRDM_sample/
Usage
refer to Usage on https://os.mbed.com/teams/JapanDisplayInc/code/MIP8f_FRDM_sample/
- you can use same sample color images
Monochrome diaplay Sample Code (.bin)
/media/uploads/JDI_Mbed_Team/mip8f_frdm_monochromedisplay_sample.k64f.bin
- MIP8f_FRDM_MonochromeDisplay_sample
Diff: StateSw/StateSW.h
- Revision:
- 0:33fe30a2b785
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/StateSw/StateSW.h Tue Sep 04 06:44:01 2018 +0000 @@ -0,0 +1,45 @@ +/* mbed StateSW Library without using PWM pins + + + */ +#include "mbed.h" + +class StateSW { + +public: + StateSW (PinName SWPin); + + void Enable(int StateNum, int NoiseCancel, int OpenTime); + int State(void); + bool IfAtTime(void); + void IfCntState(bool IfCntState); + void IfCntClose(bool IfCntClose); + void IfCntOpen(bool IfCntOpen); + // void Reset(void); + // bool IfOnetime(void); + +protected: + int _STATENUM; + int _REPEAT; + int _OPNCNT; + int _State; + + void _fall(void); + void _rise(void); + void _SeekPress(void); + + DigitalIn _SW; + bool _preSW; + int _PressCount; + + int _IfCntOpen; + int _IfCntClose; + bool _IfCntState; + bool _IfAtTime; + + Timer _Timer_SW; + Ticker _StateCounter; + +}; + +