mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-24 13:58:09 +00:00
Guard eink drivers w/ MESHTASTIC_INCLUDE_NICHE_GRAPHICS
This commit is contained in:
parent
910efd86f0
commit
6cb3acd79f
@ -11,6 +11,7 @@ E-Ink display driver
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#include "./SSD16XX.h"
|
#include "./SSD16XX.h"
|
||||||
@ -30,3 +31,4 @@ class DEPG0154BNS800 : public SSD16XX
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace NicheGraphics::Drivers
|
} // namespace NicheGraphics::Drivers
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -1,5 +1,7 @@
|
|||||||
#include "./DEPG0290BNS800.h"
|
#include "./DEPG0290BNS800.h"
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
using namespace NicheGraphics::Drivers;
|
using namespace NicheGraphics::Drivers;
|
||||||
|
|
||||||
// Describes the operation performed when a "fast refresh" is performed
|
// Describes the operation performed when a "fast refresh" is performed
|
||||||
@ -115,3 +117,4 @@ void DEPG0290BNS800::finalizeUpdate()
|
|||||||
wait();
|
wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -11,6 +11,8 @@ E-Ink display driver
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#include "./SSD16XX.h"
|
#include "./SSD16XX.h"
|
||||||
@ -37,3 +39,4 @@ class DEPG0290BNS800 : public SSD16XX
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace NicheGraphics::Drivers
|
} // namespace NicheGraphics::Drivers
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -1,5 +1,7 @@
|
|||||||
#include "./EInk.h"
|
#include "./EInk.h"
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
using namespace NicheGraphics::Drivers;
|
using namespace NicheGraphics::Drivers;
|
||||||
|
|
||||||
// Separate from EInk::begin method, as derived class constructors can probably supply these parameters as constants
|
// Separate from EInk::begin method, as derived class constructors can probably supply these parameters as constants
|
||||||
@ -65,3 +67,4 @@ void EInk::await()
|
|||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#include "concurrency/OSThread.h"
|
#include "concurrency/OSThread.h"
|
||||||
@ -51,3 +52,5 @@ class EInk : private concurrency::OSThread
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace NicheGraphics::Drivers
|
} // namespace NicheGraphics::Drivers
|
||||||
|
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -1,5 +1,7 @@
|
|||||||
#include "./GDEY0154D67.h"
|
#include "./GDEY0154D67.h"
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
using namespace NicheGraphics::Drivers;
|
using namespace NicheGraphics::Drivers;
|
||||||
|
|
||||||
// Map the display controller IC's output to the conected panel
|
// Map the display controller IC's output to the conected panel
|
||||||
@ -56,3 +58,4 @@ void GDEY0154D67::detachFromUpdate()
|
|||||||
return beginPolling(100, 2000); // At least 2 seconds for full refresh
|
return beginPolling(100, 2000); // At least 2 seconds for full refresh
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -11,6 +11,8 @@ E-Ink display driver
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#include "./SSD16XX.h"
|
#include "./SSD16XX.h"
|
||||||
@ -36,3 +38,5 @@ class GDEY0154D67 : public SSD16XX
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace NicheGraphics::Drivers
|
} // namespace NicheGraphics::Drivers
|
||||||
|
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -1,5 +1,7 @@
|
|||||||
#include "./LCMEN2R13EFC1.h"
|
#include "./LCMEN2R13EFC1.h"
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
using namespace NicheGraphics::Drivers;
|
using namespace NicheGraphics::Drivers;
|
||||||
@ -295,3 +297,5 @@ void LCMEN213EFC1::finalizeUpdate()
|
|||||||
wait();
|
wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -14,6 +14,8 @@ It is implemented as a "one-off", directly inheriting the EInk base class, unlik
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#include "./EInk.h"
|
#include "./EInk.h"
|
||||||
@ -62,3 +64,5 @@ class LCMEN213EFC1 : public EInk
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace NicheGraphics::Drivers
|
} // namespace NicheGraphics::Drivers
|
||||||
|
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -1,5 +1,6 @@
|
|||||||
#include "./SSD16XX.h"
|
#include "./SSD16XX.h"
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
using namespace NicheGraphics::Drivers;
|
using namespace NicheGraphics::Drivers;
|
||||||
|
|
||||||
SSD16XX::SSD16XX(uint16_t width, uint16_t height, UpdateTypes supported, uint8_t bufferOffsetX)
|
SSD16XX::SSD16XX(uint16_t width, uint16_t height, UpdateTypes supported, uint8_t bufferOffsetX)
|
||||||
@ -223,3 +224,4 @@ void SSD16XX::finalizeUpdate()
|
|||||||
wait();
|
wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -10,6 +10,8 @@ See DEPG0154BNS800 and DEPG0290BNS800 for examples.
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#include "./EInk.h"
|
#include "./EInk.h"
|
||||||
@ -56,3 +58,5 @@ class SSD16XX : public EInk
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace NicheGraphics::Drivers
|
} // namespace NicheGraphics::Drivers
|
||||||
|
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
Loading…
Reference in New Issue
Block a user