1.1 --- a/test.c Wed May 22 14:11:34 2013 +0000
1.2 +++ b/test.c Sat May 25 23:01:04 2013 +0000
1.3 @@ -3,10 +3,18 @@
1.4 *
1.5 * Copyright (C) 2013 Paul Boddie
1.6 *
1.7 - * This program is free software; you can redistribute it and/or modify
1.8 - * it under the terms of the GNU General Public License as published by
1.9 - * the Free Software Foundation; either version 2 of the License, or
1.10 - * (at your option) any later version.
1.11 + * This program is free software; you can redistribute it and/or modify it under
1.12 + * the terms of the GNU General Public License as published by the Free Software
1.13 + * Foundation; either version 3 of the License, or (at your option) any later
1.14 + * version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful, but WITHOUT
1.17 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.18 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.19 + * details.
1.20 + *
1.21 + * You should have received a copy of the GNU General Public License along with
1.22 + * this program. If not, see <http://www.gnu.org/licenses/>.
1.23 */
1.24
1.25 #include <ubb/ubb.h>
1.26 @@ -14,7 +22,7 @@
1.27 #include <stdlib.h>
1.28 #include <string.h>
1.29 #include <signal.h>
1.30 -#include "logo.h"
1.31 +#include "images.h"
1.32 #include "Display_Controller.h"
1.33 #include "bsp.h"
1.34
1.35 @@ -58,12 +66,21 @@
1.36 /* Call epd_DisplayImg with the new image and current image. */
1.37
1.38 epd_DisplayImg(DISPLAY_IN_USE, (uint8_t *) &image_data[0][0][0], current_image);
1.39 - printf("Updated image.\n");
1.40 + printf("Updated image. Press Enter...\n");
1.41 +
1.42 + fgetc(stdin);
1.43
1.44 /* Set the current image to the new image. */
1.45
1.46 current_image = &image_data[0][0][0];
1.47
1.48 + /* Call epd_DisplayImg with the new image and current image. */
1.49 +
1.50 + epd_DisplayImg(DISPLAY_IN_USE, (uint8_t *) &image_data[1][0][0], current_image);
1.51 + printf("Updated image.\n");
1.52 +
1.53 + /* Detach from the board. */
1.54 +
1.55 printf("Closing...\n");
1.56 ubb_close(0);
1.57