summaryrefslogtreecommitdiff
path: root/shared-module/_stage
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2019-08-27 10:06:14 -0700
committerGitHub <noreply@github.com>2019-08-27 10:06:14 -0700
commit42956a62a3f6fb60ca37f669dce5cf865a1bed5f (patch)
tree2c2152d7822eb7088d0b626743f7d9577bdae004 /shared-module/_stage
parent1d973a08038148ce20aaa43863721df6328318b7 (diff)
parentbea77c651afd919e6cb87927341714adbddb939c (diff)
Merge pull request #2085 from tannewt/epd
Rework display refresh, add M4SK and add ePaper support
Diffstat (limited to 'shared-module/_stage')
-rw-r--r--shared-module/_stage/__init__.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-module/_stage/__init__.c b/shared-module/_stage/__init__.c
index ca71b758e..2c525be87 100644
--- a/shared-module/_stage/__init__.c
+++ b/shared-module/_stage/__init__.c
@@ -57,7 +57,7 @@ void render_stage(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1,
index += 1;
// The buffer is full, send it.
if (index >= buffer_size) {
- display->send(display->bus, false, ((uint8_t*)buffer),
+ display->core.send(display->core.bus, DISPLAY_DATA, CHIP_SELECT_UNTOUCHED, ((uint8_t*)buffer),
buffer_size * 2);
index = 0;
}
@@ -67,6 +67,6 @@ void render_stage(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1,
}
// Send the remaining data.
if (index) {
- display->send(display->bus, false, ((uint8_t*)buffer), index * 2);
+ display->core.send(display->core.bus, DISPLAY_DATA, CHIP_SELECT_UNTOUCHED, ((uint8_t*)buffer), index * 2);
}
}