forked from OpenEPaperLink/OpenEPaperLink
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructured epd driver interface, support for UC-based tags
- Loading branch information
Showing
20 changed files
with
205 additions
and
353 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
ARM_Tag_FW/Newton_M3_nRF52811/hal/Newton_M3_nRF52811/HAL_Newton_M3.h
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
#define SSD1619 0 | ||
#define UCVARIANT029 1 | ||
#define UCVARIANT043 2 | ||
#define UC8159 3 | ||
#define UC8179 4 | ||
|
||
#if EPD_DRIVER == SSD1619 | ||
#include "epd_driver/ssd1619.cpp" | ||
#endif | ||
|
||
#if EPD_DRIVER == UCVARIANT029 | ||
#include "epd_driver/uc_variant_029.cpp" | ||
#endif | ||
|
||
#if EPD_DRIVER == UCVARIANT043 | ||
#include "epd_driver/uc_variant_043.cpp" | ||
#endif | ||
|
||
#if EPD_DRIVER == UC8159 | ||
#include "epd_driver/uc8159.cpp" | ||
#endif | ||
|
||
#if EPD_DRIVER == UC8179 | ||
#include "epd_driver/uc8179.cpp" | ||
#endif |
24 changes: 8 additions & 16 deletions
24
...g_FW/Newton_M3_nRF52811/include/ssd1619.h → ...3_nRF52811/src/epd_driver/epd_interface.h
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 |
---|---|---|
@@ -1,30 +1,22 @@ | ||
#ifndef _JSCREEN_H_ | ||
#define _JSCREEN_H_ | ||
#ifndef _EPD_IFACE_H_ | ||
#define _EPD_IFACE_H_ | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
#define EPD_SSD1619 | ||
|
||
#define epdSend spi_write | ||
|
||
#define EPD_LUT_DEFAULT 0 | ||
#define EPD_LUT_NO_REPEATS 1 | ||
#define EPD_LUT_FAST_NO_REDS 2 | ||
#define EPD_LUT_FAST 3 | ||
#define EPD_LUT_OTA 0x10 | ||
|
||
void epdSetup(); | ||
void epdEnterSleep(); | ||
|
||
extern uint8_t dispLutSize; | ||
extern uint8_t customLUT[]; | ||
|
||
void draw(); | ||
void drawNoWait(); | ||
void drawWithSleep(); | ||
void epdWaitRdy(); | ||
|
||
#define EPD_LUT_DEFAULT 0 | ||
#define EPD_LUT_NO_REPEATS 1 | ||
#define EPD_LUT_FAST_NO_REDS 2 | ||
#define EPD_LUT_FAST 3 | ||
|
||
void selectLUT(uint8_t lut); | ||
|
||
#endif | ||
#endif |
Oops, something went wrong.