Chris Styles
/
ExternalArrays
Example of using extern and const to define arrays in FLASH
main.cpp@1:286ee0d817a5, 2012-03-06 (annotated)
- Committer:
- chris
- Date:
- Tue Mar 06 14:30:17 2012 +0000
- Revision:
- 1:286ee0d817a5
- Parent:
- 0:40516f44bc6b
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 1:286ee0d817a5 | 1 | #include "mbed.h" |
chris | 1:286ee0d817a5 | 2 | #include "Comic24.h" |
chris | 1:286ee0d817a5 | 3 | |
chris | 1:286ee0d817a5 | 4 | int main() { |
chris | 1:286ee0d817a5 | 5 | |
chris | 1:286ee0d817a5 | 6 | printf("\nPrinting first 10 bytes of Comic24\n"); |
chris | 1:286ee0d817a5 | 7 | |
chris | 1:286ee0d817a5 | 8 | for (int i=0; i<10 ; i++) { |
chris | 1:286ee0d817a5 | 9 | printf("%x, ",Comic24[i]); |
chris | 1:286ee0d817a5 | 10 | } |
chris | 1:286ee0d817a5 | 11 | |
chris | 1:286ee0d817a5 | 12 | printf("\n\nDone!\n"); |
chris | 1:286ee0d817a5 | 13 | } |