Library to control the EM027BS013 ePaper display from Pervasive Display.

Dependencies:   LM75B

Dependents:   app_epaper_EM027BS013_LPC1549 lpc4088_ebb_epaper EaEpaper_EM027BS013 app_epaper_EM027BS013 ... more

Committer:
embeddedartists
Date:
Tue Jul 22 11:59:06 2014 +0000
Revision:
0:9297e33f50cf
First version of library for the EM027BS013 ePaper display.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 0:9297e33f50cf 1 /*
embeddedartists 0:9297e33f50cf 2 * Copyright 2014 Embedded Artists AB
embeddedartists 0:9297e33f50cf 3 *
embeddedartists 0:9297e33f50cf 4 * Licensed under the Apache License, Version 2.0 (the "License");
embeddedartists 0:9297e33f50cf 5 * you may not use this file except in compliance with the License.
embeddedartists 0:9297e33f50cf 6 * You may obtain a copy of the License at
embeddedartists 0:9297e33f50cf 7 *
embeddedartists 0:9297e33f50cf 8 * http://www.apache.org/licenses/LICENSE-2.0
embeddedartists 0:9297e33f50cf 9 *
embeddedartists 0:9297e33f50cf 10 * Unless required by applicable law or agreed to in writing, software
embeddedartists 0:9297e33f50cf 11 * distributed under the License is distributed on an "AS IS" BASIS,
embeddedartists 0:9297e33f50cf 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
embeddedartists 0:9297e33f50cf 13 * See the License for the specific language governing permissions and
embeddedartists 0:9297e33f50cf 14 * limitations under the License.
embeddedartists 0:9297e33f50cf 15 */
embeddedartists 0:9297e33f50cf 16
embeddedartists 0:9297e33f50cf 17 #ifndef EM027BS013_H
embeddedartists 0:9297e33f50cf 18 #define EM027BS013_H
embeddedartists 0:9297e33f50cf 19
embeddedartists 0:9297e33f50cf 20 /** An interface to Embedded Artists' ePaper display, EM027BS013
embeddedartists 0:9297e33f50cf 21 *
embeddedartists 0:9297e33f50cf 22 */
embeddedartists 0:9297e33f50cf 23 class EM027BS013 {
embeddedartists 0:9297e33f50cf 24 public:
embeddedartists 0:9297e33f50cf 25
embeddedartists 0:9297e33f50cf 26 /** Create an interface to an Embedded Artistss ePaper display, EM027BS013.
embeddedartists 0:9297e33f50cf 27 *
embeddedartists 0:9297e33f50cf 28 * The parameters are all for the Serial Expansion Connector (SEC)
embeddedartists 0:9297e33f50cf 29 */
embeddedartists 0:9297e33f50cf 30 EM027BS013(PinName sec03_SpiSCK,
embeddedartists 0:9297e33f50cf 31 PinName sec04_SpiMOSI,
embeddedartists 0:9297e33f50cf 32 PinName sec05_SpiMISO,
embeddedartists 0:9297e33f50cf 33 PinName sec06_EpdCS,
embeddedartists 0:9297e33f50cf 34 PinName sec07_EpdBusy,
embeddedartists 0:9297e33f50cf 35 PinName sec08_EpdBorder,
embeddedartists 0:9297e33f50cf 36 PinName sec09_I2cSCL,
embeddedartists 0:9297e33f50cf 37 PinName sec10_I2cSDA,
embeddedartists 0:9297e33f50cf 38 PinName sec11_FlashCS,
embeddedartists 0:9297e33f50cf 39 PinName sec12_EpdReset,
embeddedartists 0:9297e33f50cf 40 PinName sec13_EpdPanelOn,
embeddedartists 0:9297e33f50cf 41 PinName sec14_EpdDischarge);
embeddedartists 0:9297e33f50cf 42
embeddedartists 0:9297e33f50cf 43 /** Draws the specified image on the display.
embeddedartists 0:9297e33f50cf 44 *
embeddedartists 0:9297e33f50cf 45 * @param image The image data, must be 264x176 bytes
embeddedartists 0:9297e33f50cf 46 */
embeddedartists 0:9297e33f50cf 47 void drawImage(uint8_t* image);
embeddedartists 0:9297e33f50cf 48
embeddedartists 0:9297e33f50cf 49 private:
embeddedartists 0:9297e33f50cf 50 /** Initializes the display
embeddedartists 0:9297e33f50cf 51 */
embeddedartists 0:9297e33f50cf 52 void init(void);
embeddedartists 0:9297e33f50cf 53
embeddedartists 0:9297e33f50cf 54 bool initialized;
embeddedartists 0:9297e33f50cf 55 };
embeddedartists 0:9297e33f50cf 56
embeddedartists 0:9297e33f50cf 57 #endif
embeddedartists 0:9297e33f50cf 58