EmbeddedArtists AB / EM027BS013

Dependencies:   LM75B

Dependents:   app_epaper_EM027BS013_LPC1549 lpc4088_ebb_epaper EaEpaper_EM027BS013 app_epaper_EM027BS013 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers EM027BS013.h Source File

EM027BS013.h

00001 /*
00002  *  Copyright 2014 Embedded Artists AB
00003  *
00004  *  Licensed under the Apache License, Version 2.0 (the "License");
00005  *  you may not use this file except in compliance with the License.
00006  *  You may obtain a copy of the License at
00007  *
00008  *    http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  *  Unless required by applicable law or agreed to in writing, software
00011  *  distributed under the License is distributed on an "AS IS" BASIS,
00012  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *  See the License for the specific language governing permissions and
00014  *  limitations under the License.
00015  */
00016 
00017 #ifndef EM027BS013_H
00018 #define EM027BS013_H
00019 
00020 /** An interface to Embedded Artists' ePaper display, EM027BS013
00021  *
00022  */
00023 class EM027BS013 {
00024 public:
00025 
00026     /** Create an interface to an Embedded Artistss ePaper display, EM027BS013.
00027      *
00028      * The parameters are all for the Serial Expansion Connector (SEC) 
00029      */
00030     EM027BS013(PinName sec03_SpiSCK,
00031                PinName sec04_SpiMOSI,
00032                PinName sec05_SpiMISO,
00033                PinName sec06_EpdCS,
00034                PinName sec07_EpdBusy,
00035                PinName sec08_EpdBorder,
00036                PinName sec09_I2cSCL,
00037                PinName sec10_I2cSDA,
00038                PinName sec11_FlashCS,
00039                PinName sec12_EpdReset,
00040                PinName sec13_EpdPanelOn,
00041                PinName sec14_EpdDischarge);
00042 
00043     /** Draws the specified image on the display.
00044      *
00045      * @param image The image data, must be 264x176 bytes
00046      */
00047     void drawImage(uint8_t* image);
00048     
00049 private:
00050     /** Initializes the display
00051      */
00052     void init(void);
00053 
00054     bool initialized;
00055 };
00056 
00057 #endif
00058