Graphical demo for the LPC4088 Experiment Base Board with one of the Display Expansion Kits. This program displays a Mandelbrot calculation in a circular zoomed-in sequence.

Dependencies:   EALib mbed

Committer:
embeddedartists
Date:
Fri Oct 03 13:21:52 2014 +0000
Revision:
0:e24e3d741c52
First version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 0:e24e3d741c52 1 /*
embeddedartists 0:e24e3d741c52 2 * Copyright 2013 Embedded Artists AB
embeddedartists 0:e24e3d741c52 3 *
embeddedartists 0:e24e3d741c52 4 * Licensed under the Apache License, Version 2.0 (the "License");
embeddedartists 0:e24e3d741c52 5 * you may not use this file except in compliance with the License.
embeddedartists 0:e24e3d741c52 6 * You may obtain a copy of the License at
embeddedartists 0:e24e3d741c52 7 *
embeddedartists 0:e24e3d741c52 8 * http://www.apache.org/licenses/LICENSE-2.0
embeddedartists 0:e24e3d741c52 9 *
embeddedartists 0:e24e3d741c52 10 * Unless required by applicable law or agreed to in writing, software
embeddedartists 0:e24e3d741c52 11 * distributed under the License is distributed on an "AS IS" BASIS,
embeddedartists 0:e24e3d741c52 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
embeddedartists 0:e24e3d741c52 13 * See the License for the specific language governing permissions and
embeddedartists 0:e24e3d741c52 14 * limitations under the License.
embeddedartists 0:e24e3d741c52 15 */
embeddedartists 0:e24e3d741c52 16
embeddedartists 0:e24e3d741c52 17 #ifndef EALCDBOARDGPIO_H
embeddedartists 0:e24e3d741c52 18 #define EALCDBOARDGPIO_H
embeddedartists 0:e24e3d741c52 19
embeddedartists 0:e24e3d741c52 20 #include "EaLcdBoard.h"
embeddedartists 0:e24e3d741c52 21
embeddedartists 0:e24e3d741c52 22 /** An interface to Embedded Artists LCD Boards
embeddedartists 0:e24e3d741c52 23 *
embeddedartists 0:e24e3d741c52 24 */
embeddedartists 0:e24e3d741c52 25 class EaLcdBoardGPIO : public EaLcdBoard {
embeddedartists 0:e24e3d741c52 26 public:
embeddedartists 0:e24e3d741c52 27
embeddedartists 0:e24e3d741c52 28 EaLcdBoardGPIO(PinName sda, PinName scl);
embeddedartists 0:e24e3d741c52 29
embeddedartists 0:e24e3d741c52 30 void setBC(uint32_t val) { setBacklightContrast(val); };
embeddedartists 0:e24e3d741c52 31
embeddedartists 0:e24e3d741c52 32 protected:
embeddedartists 0:e24e3d741c52 33 virtual void setWriteProtect(bool enable);
embeddedartists 0:e24e3d741c52 34 virtual void set3V3Signal(bool enabled);
embeddedartists 0:e24e3d741c52 35 virtual void set5VSignal(bool enabled);
embeddedartists 0:e24e3d741c52 36 virtual void setDisplayEnableSignal(bool enabled);
embeddedartists 0:e24e3d741c52 37 virtual void setBacklightContrast(uint32_t value);
embeddedartists 0:e24e3d741c52 38
embeddedartists 0:e24e3d741c52 39 private:
embeddedartists 0:e24e3d741c52 40 //DigitalOut pinWP;
embeddedartists 0:e24e3d741c52 41 DigitalOut pin3v3;
embeddedartists 0:e24e3d741c52 42 DigitalOut pin5v;
embeddedartists 0:e24e3d741c52 43 DigitalOut pinDE;
embeddedartists 0:e24e3d741c52 44 //DigitalOut pinContrast;
embeddedartists 0:e24e3d741c52 45 PwmOut pinContrast;
embeddedartists 0:e24e3d741c52 46 };
embeddedartists 0:e24e3d741c52 47
embeddedartists 0:e24e3d741c52 48 #endif
embeddedartists 0:e24e3d741c52 49
embeddedartists 0:e24e3d741c52 50