1.1 --- a/EPD.h Sun May 19 22:06:40 2013 +0000
1.2 +++ b/EPD.h Tue May 21 15:08:07 2013 +0000
1.3 @@ -16,18 +16,17 @@
1.4 #ifndef __EPD_H__
1.5 #define __EPD_H__
1.6
1.7 -#include "bsp.h"
1.8 -
1.9 -//TODO
1.10 -#define PROGMEM /*const*/
1.11 +#include <stdint.h>
1.12
1.13 -// if more SRAM available (8 kBytes)
1.14 -#define EPD_ENABLE_EXTRA_SRAM 1
1.15 +typedef enum {
1.16 + FALSE=0,
1.17 + TRUE=1
1.18 +} bool;
1.19
1.20 -//typedef enum {
1.21 -// LOW=0,
1.22 -// HIGH=1
1.23 -//} EPD_pinstate;
1.24 +typedef enum {
1.25 + LOW=0,
1.26 + HIGH=1
1.27 +} EPD_pinstate;
1.28
1.29 typedef enum {
1.30 EPD_1_44, // 128 x 96
1.31 @@ -51,9 +50,9 @@
1.32 uint16_t dots_per_line;
1.33 uint16_t bytes_per_line;
1.34 uint16_t bytes_per_scan;
1.35 - PROGMEM const uint8_t *gate_source;
1.36 + const uint8_t *gate_source;
1.37 uint16_t gate_source_length;
1.38 - PROGMEM const uint8_t *channel_select;
1.39 + const uint8_t *channel_select;
1.40 uint16_t channel_select_length;
1.41 uint8_t filler;
1.42 } COG_Parameters_t;
1.43 @@ -69,16 +68,11 @@
1.44 // clear display (anything -> white)
1.45 void EPD_clear(void);
1.46
1.47 -// assuming a clear (white) screen output an image (PROGMEM data)
1.48 -void EPD_image(PROGMEM const uint8_t *image);
1.49 +// assuming a clear (white) screen output an image
1.50 +void EPD_image(const uint8_t *image);
1.51
1.52 -// change from old image to new image (PROGMEM data)
1.53 -void EPD_image_progmem(PROGMEM const uint8_t *old_image, PROGMEM const uint8_t *new_image);
1.54 -
1.55 -#if defined(EPD_ENABLE_EXTRA_SRAM)
1.56 -// change from old image to new image (SRAM version)
1.57 -void EPD_image_sram(const uint8_t *old_image, const uint8_t *new_image);
1.58 -#endif
1.59 +// change from old image to new image
1.60 +void EPD_image_change(const uint8_t *old_image, const uint8_t *new_image);
1.61
1.62
1.63 #endif //__EPD_H__