Example program for the Seeed EL shield on pins D4-D7
Dependencies: mbed
main.cpp@2:1d128bca7a6f, 2014-07-25 (annotated)
- Committer:
- screamer
- Date:
- Fri Jul 25 12:29:34 2014 +0000
- Revision:
- 2:1d128bca7a6f
- Parent:
- 1:b15577bc9bc1
Add Apache2 license compatible header
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 2:1d128bca7a6f | 1 | /* Copyright (c) 2010-2011 mbed.org, MIT License |
screamer | 2:1d128bca7a6f | 2 | * |
screamer | 2:1d128bca7a6f | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
screamer | 2:1d128bca7a6f | 4 | * and associated documentation files (the "Software"), to deal in the Software without |
screamer | 2:1d128bca7a6f | 5 | * restriction, including without limitation the rights to use, copy, modify, merge, publish, |
screamer | 2:1d128bca7a6f | 6 | * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the |
screamer | 2:1d128bca7a6f | 7 | * Software is furnished to do so, subject to the following conditions: |
screamer | 2:1d128bca7a6f | 8 | * |
screamer | 2:1d128bca7a6f | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
screamer | 2:1d128bca7a6f | 10 | * substantial portions of the Software. |
screamer | 2:1d128bca7a6f | 11 | * |
screamer | 2:1d128bca7a6f | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
screamer | 2:1d128bca7a6f | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
screamer | 2:1d128bca7a6f | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
screamer | 2:1d128bca7a6f | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
screamer | 2:1d128bca7a6f | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
screamer | 2:1d128bca7a6f | 17 | */ |
screamer | 2:1d128bca7a6f | 18 | |
screamer | 0:05e694b57b6c | 19 | #include "mbed.h" |
screamer | 0:05e694b57b6c | 20 | |
screamer | 0:05e694b57b6c | 21 | BusOut bus1(D4, D5, D6, D7); |
screamer | 0:05e694b57b6c | 22 | |
screamer | 0:05e694b57b6c | 23 | int main() { |
screamer | 0:05e694b57b6c | 24 | int i; |
screamer | 0:05e694b57b6c | 25 | |
screamer | 0:05e694b57b6c | 26 | while (1) { |
screamer | 0:05e694b57b6c | 27 | for (i=0; i<16; i++) { |
screamer | 0:05e694b57b6c | 28 | bus1 = i; |
screamer | 1:b15577bc9bc1 | 29 | wait(0.2); |
screamer | 0:05e694b57b6c | 30 | } |
screamer | 0:05e694b57b6c | 31 | } |
screamer | 0:05e694b57b6c | 32 | } |