aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/St7789.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-08 21:38:11 +0100
committerJF <jf@codingfield.com>2020-03-08 21:38:11 +0100
commitd834f40c1014ac8926af9aaadc434a49e632b000 (patch)
tree196fd24b617102eb1659e046623c107fa9795ac9 /src/drivers/St7789.h
parentbfecc8118e90998c62ff0b29c0260e66d83d8e33 (diff)
Do not copy LittleVgl object in DislayApp, use reference instead.
Make Cst816s, SpiMaster and St7789 not copiable and not movable
Diffstat (limited to 'src/drivers/St7789.h')
-rw-r--r--src/drivers/St7789.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h
index 4341e909..42fbe6a7 100644
--- a/src/drivers/St7789.h
+++ b/src/drivers/St7789.h
@@ -7,6 +7,11 @@ namespace Pinetime {
class St7789 {
public:
explicit St7789(SpiMaster& spiMaster, uint8_t pinDataCommand);
+ St7789(const St7789&) = delete;
+ St7789& operator=(const St7789&) = delete;
+ St7789(St7789&&) = delete;
+ St7789& operator=(St7789&&) = delete;
+
void Init();
void Uninit();
void DrawPixel(uint16_t x, uint16_t y, uint32_t color);