Production Test Program (PTP) for the LPC4088 Experiment Base Board
Dependencies: EALib I2S LM75B SDFileSystem mbed
EaLcdBoardGPIO.h@9:eb6086159020, 2014-10-01 (annotated)
- Committer:
- embeddedartists
- Date:
- Wed Oct 01 11:16:38 2014 +0000
- Revision:
- 9:eb6086159020
- Parent:
- 1:47680ec5d783
Updated used libraries
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
embeddedartists | 1:47680ec5d783 | 1 | /* |
embeddedartists | 1:47680ec5d783 | 2 | * Copyright 2013 Embedded Artists AB |
embeddedartists | 1:47680ec5d783 | 3 | * |
embeddedartists | 1:47680ec5d783 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
embeddedartists | 1:47680ec5d783 | 5 | * you may not use this file except in compliance with the License. |
embeddedartists | 1:47680ec5d783 | 6 | * You may obtain a copy of the License at |
embeddedartists | 1:47680ec5d783 | 7 | * |
embeddedartists | 1:47680ec5d783 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
embeddedartists | 1:47680ec5d783 | 9 | * |
embeddedartists | 1:47680ec5d783 | 10 | * Unless required by applicable law or agreed to in writing, software |
embeddedartists | 1:47680ec5d783 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
embeddedartists | 1:47680ec5d783 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
embeddedartists | 1:47680ec5d783 | 13 | * See the License for the specific language governing permissions and |
embeddedartists | 1:47680ec5d783 | 14 | * limitations under the License. |
embeddedartists | 1:47680ec5d783 | 15 | */ |
embeddedartists | 1:47680ec5d783 | 16 | |
embeddedartists | 1:47680ec5d783 | 17 | #ifndef EALCDBOARDGPIO_H |
embeddedartists | 1:47680ec5d783 | 18 | #define EALCDBOARDGPIO_H |
embeddedartists | 1:47680ec5d783 | 19 | |
embeddedartists | 1:47680ec5d783 | 20 | #include "EaLcdBoard.h" |
embeddedartists | 1:47680ec5d783 | 21 | |
embeddedartists | 1:47680ec5d783 | 22 | /** An interface to Embedded Artists LCD Boards |
embeddedartists | 1:47680ec5d783 | 23 | * |
embeddedartists | 1:47680ec5d783 | 24 | */ |
embeddedartists | 1:47680ec5d783 | 25 | class EaLcdBoardGPIO : public EaLcdBoard { |
embeddedartists | 1:47680ec5d783 | 26 | public: |
embeddedartists | 1:47680ec5d783 | 27 | |
embeddedartists | 1:47680ec5d783 | 28 | EaLcdBoardGPIO(PinName sda, PinName scl); |
embeddedartists | 1:47680ec5d783 | 29 | |
embeddedartists | 1:47680ec5d783 | 30 | void setBC(uint32_t val) { setBacklightContrast(val); }; |
embeddedartists | 1:47680ec5d783 | 31 | |
embeddedartists | 1:47680ec5d783 | 32 | protected: |
embeddedartists | 1:47680ec5d783 | 33 | virtual void setWriteProtect(bool enable); |
embeddedartists | 1:47680ec5d783 | 34 | virtual void set3V3Signal(bool enabled); |
embeddedartists | 1:47680ec5d783 | 35 | virtual void set5VSignal(bool enabled); |
embeddedartists | 1:47680ec5d783 | 36 | virtual void setDisplayEnableSignal(bool enabled); |
embeddedartists | 1:47680ec5d783 | 37 | virtual void setBacklightContrast(uint32_t value); |
embeddedartists | 1:47680ec5d783 | 38 | |
embeddedartists | 1:47680ec5d783 | 39 | private: |
embeddedartists | 1:47680ec5d783 | 40 | //DigitalOut pinWP; |
embeddedartists | 1:47680ec5d783 | 41 | DigitalOut pin3v3; |
embeddedartists | 1:47680ec5d783 | 42 | DigitalOut pin5v; |
embeddedartists | 1:47680ec5d783 | 43 | DigitalOut pinDE; |
embeddedartists | 1:47680ec5d783 | 44 | //DigitalOut pinContrast; |
embeddedartists | 1:47680ec5d783 | 45 | PwmOut pinContrast; |
embeddedartists | 1:47680ec5d783 | 46 | }; |
embeddedartists | 1:47680ec5d783 | 47 | |
embeddedartists | 1:47680ec5d783 | 48 | #endif |
embeddedartists | 1:47680ec5d783 | 49 | |
embeddedartists | 1:47680ec5d783 | 50 |