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