forked from OpenEPaperLink/OpenEPaperLink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OpenEPaperLink#226 from VstudioLAB/ST‐GM29MT1
Adding support to the ST‐GM29MT1 BW (UC8151)
- Loading branch information
Showing
9 changed files
with
127 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "ST‐GM29MT1 2.9\"", | ||
"width": 296, | ||
"height": 128, | ||
"rotatebuffer": 1, | ||
"bpp": 1, | ||
"colors": 2, | ||
"colortable": { | ||
"white": [255, 255, 255], | ||
"black": [0, 0, 0] | ||
}, | ||
"shortlut": 0, | ||
"options": ["button", "customlut"], | ||
"contentids": [ 22, 23, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 15, 16, 17, 18, 19, 20, 21 ], | ||
"usetemplate": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "../boardZBS29common.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef _BOARD_H_ | ||
#define _BOARD_H_ | ||
|
||
#include <stdint.h> | ||
#include "spi.h" | ||
|
||
#define __packed | ||
#include "../oepl-definitions.h" | ||
|
||
|
||
#define eepromByte spiByte | ||
#define eepromPrvSelect() do { __asm__("nop\nnop\nnop\n"); P1_1 = 0; __asm__("nop\nnop\nnop\n"); } while(0) | ||
#define eepromPrvDeselect() do { __asm__("nop\nnop\nnop\n"); P1_1 = 1; __asm__("nop\nnop\nnop\n"); } while(0) | ||
|
||
//eeprom map | ||
#define EEPROM_SETTINGS_AREA_START (0x00000UL) | ||
#define EEPROM_SETTINGS_AREA_LEN (0x01000UL) | ||
#define EEPROM_IMG_START (0x01000UL) | ||
#define EEPROM_IMG_EACH (0x03000UL) | ||
|
||
#define HAS_EEPROM 1 | ||
#define HAS_SCREEN 1 | ||
#define NFC_TYPE 1 | ||
#define AP_EMULATE_TAG 1 | ||
|
||
|
||
//hw types | ||
#define HW_TYPE SOLUM_M2_BW_29 | ||
|
||
#include "../boardCommon.h" | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FLAGS += --code-size 0xfc00 | ||
|
||
SOC = zbs243 | ||
|
||
BARCODE = datamatrix | ||
|
||
# 0xfc00 and not 0x10000 to leave some space for update header and updater in flash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "../uc8151.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef _SCREEN_H_ | ||
#define _SCREEN_H_ | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
#include "../uc8151.h" | ||
|
||
#define BW_SCREEN | ||
#define SCREEN_WIDTH 128 | ||
#define SCREEN_HEIGHT 296 | ||
|
||
#define SCREEN_NUM_GREYS 1 | ||
#define SCREEN_FIRST_GREY_IDX 0 | ||
#define SCREEN_EXTRA_COLOR_INDEX -1 //set to negative if nonexistent | ||
#define SCREEN_TX_BPP 4 //in transit | ||
|
||
#define SCREEN_WIDTH_MM 29 | ||
#define SCREEN_HEIGHT_MM 67 | ||
|
||
#define SCREEN_BYTE_FILL 0x44 //white | ||
|
||
#define SCREEN_TYPE TagScreenEink_BW_1bpp | ||
|
||
#define SCREEN_DATA_PASSES 2 | ||
|
||
#endif |