Example of using extern and const to define arrays in FLASH

Dependencies:   mbed

Committer:
chris
Date:
Tue Mar 06 14:15:00 2012 +0000
Revision:
0:40516f44bc6b
Child:
1:286ee0d817a5

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chris 0:40516f44bc6b 1 #include "mbed.h"
chris 0:40516f44bc6b 2 #include "Comic24.h"
chris 0:40516f44bc6b 3
chris 0:40516f44bc6b 4
chris 0:40516f44bc6b 5 DigitalOut myled(LED1);
chris 0:40516f44bc6b 6
chris 0:40516f44bc6b 7 int main() {
chris 0:40516f44bc6b 8
chris 0:40516f44bc6b 9 printf("\nPrinting first 10 bytes of Comic24\n");
chris 0:40516f44bc6b 10
chris 0:40516f44bc6b 11 for (int i=0; i<10 ; i++) {
chris 0:40516f44bc6b 12 printf("%x, ",Comic24[i]);
chris 0:40516f44bc6b 13 myled != myled;
chris 0:40516f44bc6b 14 wait(0.2);
chris 0:40516f44bc6b 15 }
chris 0:40516f44bc6b 16
chris 0:40516f44bc6b 17 printf("\n\nDone!\n");
chris 0:40516f44bc6b 18 }