Software driver for Luminex LCD-S401M16KR LCD Numeric Display Modules 4 Digit 0.17" 7 Seg Reflective
S401M16KR.cpp@3:eb13032e5355, 2014-05-09 (annotated)
- Committer:
- sam_grove
- Date:
- Fri May 09 16:21:33 2014 +0000
- Revision:
- 3:eb13032e5355
- Parent:
- 1:fcc6ff6d7853
another change
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sam_grove | 0:69395ca729e6 | 1 | /** |
sam_grove | 0:69395ca729e6 | 2 | * @file S401M16KR.cpp |
sam_grove | 0:69395ca729e6 | 3 | * @brief Device driver - Luminex S401M16KR 4 character 7 segment LCD |
sam_grove | 0:69395ca729e6 | 4 | * @author sam grove & __________ |
sam_grove | 0:69395ca729e6 | 5 | * @version 1.0 |
sam_grove | 0:69395ca729e6 | 6 | * @see http://www.lumex.com/specs/LCD-S401M16KR.pdf |
sam_grove | 0:69395ca729e6 | 7 | * |
sam_grove | 0:69395ca729e6 | 8 | * Copyright (c) 2013 |
sam_grove | 0:69395ca729e6 | 9 | * |
sam_grove | 0:69395ca729e6 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
sam_grove | 0:69395ca729e6 | 11 | * you may not use this file except in compliance with the License. |
sam_grove | 0:69395ca729e6 | 12 | * You may obtain a copy of the License at |
sam_grove | 0:69395ca729e6 | 13 | * |
sam_grove | 0:69395ca729e6 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
sam_grove | 0:69395ca729e6 | 15 | * |
sam_grove | 0:69395ca729e6 | 16 | * Unless required by applicable law or agreed to in writing, software |
sam_grove | 0:69395ca729e6 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
sam_grove | 0:69395ca729e6 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
sam_grove | 0:69395ca729e6 | 19 | * See the License for the specific language governing permissions and |
sam_grove | 0:69395ca729e6 | 20 | * limitations under the License. |
sam_grove | 0:69395ca729e6 | 21 | */ |
sam_grove | 0:69395ca729e6 | 22 | |
sam_grove | 1:fcc6ff6d7853 | 23 | #include "S401M16KR.h" |
sam_grove | 0:69395ca729e6 | 24 | |
sam_grove | 0:69395ca729e6 | 25 | S401M16KR::S401M16KR() |
sam_grove | 0:69395ca729e6 | 26 | { |
sam_grove | 0:69395ca729e6 | 27 | |
sam_grove | 0:69395ca729e6 | 28 | } |
sam_grove | 0:69395ca729e6 | 29 | |
sam_grove | 0:69395ca729e6 | 30 | S401M16KR::S401M16KR(PinName com0, PinName com1, PinName com2, PinName com3 |
sam_grove | 0:69395ca729e6 | 31 | ,PinName _1d_1e_1g_1f, PinName dp1_1c_1b_1a, PinName _2d_2e_2g_2f, PinName dp2_2c_2b_2a |
sam_grove | 0:69395ca729e6 | 32 | ,PinName _3d_3e_3g_3f, PinName dp3_3c_3b_3a, PinName _4d_4e_4g_4f, PinName col_4c_4b_4a) |
sam_grove | 0:69395ca729e6 | 33 | { |
sam_grove | 0:69395ca729e6 | 34 | |
sam_grove | 0:69395ca729e6 | 35 | } |
sam_grove | 0:69395ca729e6 | 36 | |
sam_grove | 0:69395ca729e6 | 37 | void S401M16KR::init(void) const |
sam_grove | 0:69395ca729e6 | 38 | { |
sam_grove | 0:69395ca729e6 | 39 | |
sam_grove | 0:69395ca729e6 | 40 | } |
sam_grove | 0:69395ca729e6 | 41 | |
sam_grove | 0:69395ca729e6 | 42 | |
sam_grove | 0:69395ca729e6 | 43 | void S401M16KR::enable(void) const |
sam_grove | 0:69395ca729e6 | 44 | { |
sam_grove | 0:69395ca729e6 | 45 | |
sam_grove | 0:69395ca729e6 | 46 | } |
sam_grove | 0:69395ca729e6 | 47 | |
sam_grove | 0:69395ca729e6 | 48 | |
sam_grove | 0:69395ca729e6 | 49 | void S401M16KR::disable(void) const |
sam_grove | 0:69395ca729e6 | 50 | { |
sam_grove | 0:69395ca729e6 | 51 | |
sam_grove | 0:69395ca729e6 | 52 | } |
sam_grove | 0:69395ca729e6 | 53 | |
sam_grove | 0:69395ca729e6 | 54 | void S401M16KR::scrollSpeed(const float ms) const |
sam_grove | 0:69395ca729e6 | 55 | { |
sam_grove | 0:69395ca729e6 | 56 | |
sam_grove | 0:69395ca729e6 | 57 | } |
sam_grove | 0:69395ca729e6 | 58 | |
sam_grove | 0:69395ca729e6 | 59 | void S401M16KR::displayTime(const int hours, const int minutes) const |
sam_grove | 0:69395ca729e6 | 60 | { |
sam_grove | 0:69395ca729e6 | 61 | |
sam_grove | 0:69395ca729e6 | 62 | } |
sam_grove | 0:69395ca729e6 | 63 | |
sam_grove | 0:69395ca729e6 | 64 | void S401M16KR::displayTime(const struct tm time) const |
sam_grove | 0:69395ca729e6 | 65 | { |
sam_grove | 0:69395ca729e6 | 66 | |
sam_grove | 0:69395ca729e6 | 67 | } |
sam_grove | 0:69395ca729e6 | 68 | |
sam_grove | 0:69395ca729e6 | 69 | void S401M16KR::displayText(const char *str, const int scroll) const |
sam_grove | 0:69395ca729e6 | 70 | { |
sam_grove | 0:69395ca729e6 | 71 | |
sam_grove | 0:69395ca729e6 | 72 | } |
sam_grove | 0:69395ca729e6 | 73 | |
sam_grove | 0:69395ca729e6 | 74 | void S401M16KR::displayTemp(const float temperature, const int fahrenheit) |
sam_grove | 0:69395ca729e6 | 75 | { |
sam_grove | 0:69395ca729e6 | 76 | |
sam_grove | 0:69395ca729e6 | 77 | } |
sam_grove | 0:69395ca729e6 | 78 | |
sam_grove | 0:69395ca729e6 | 79 | int S401M16KR::printf(const char *format, ...) |
sam_grove | 0:69395ca729e6 | 80 | { |
sam_grove | 0:69395ca729e6 | 81 | return -1; |
sam_grove | 0:69395ca729e6 | 82 | } |
sam_grove | 0:69395ca729e6 | 83 | |
sam_grove | 0:69395ca729e6 | 84 | int S401M16KR::puts(const char *s) |
sam_grove | 0:69395ca729e6 | 85 | { |
sam_grove | 0:69395ca729e6 | 86 | return -1; |
sam_grove | 0:69395ca729e6 | 87 | } |
sam_grove | 0:69395ca729e6 | 88 |