mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-01 11:16:20 +02:00
display functional if CMT isn't active
This commit is contained in:
parent
26d1bc400d
commit
708160b459
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
class epdHal: public GxEPD2_HalInterface, public SpiPatcherHandle {
|
class epdHal: public GxEPD2_HalInterface, public SpiPatcherHandle {
|
||||||
public:
|
public:
|
||||||
epdHal() {
|
epdHal() {
|
||||||
mSpiPatcher = SpiPatcher::getInstance(SPI2_HOST);
|
mSpiPatcher = SpiPatcher::getInstance(SPI3_HOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
void patch() override {
|
void patch() override {
|
||||||
|
@ -72,7 +72,7 @@ class epdHal: public GxEPD2_HalInterface, public SpiPatcherHandle {
|
||||||
if(GPIO_NUM_NC != mPinRst) {
|
if(GPIO_NUM_NC != mPinRst) {
|
||||||
gpio_reset_pin(mPinRst);
|
gpio_reset_pin(mPinRst);
|
||||||
gpio_set_direction(mPinRst, GPIO_MODE_OUTPUT);
|
gpio_set_direction(mPinRst, GPIO_MODE_OUTPUT);
|
||||||
gpio_set_level(mPinRst, LOW);
|
gpio_set_level(mPinRst, HIGH);
|
||||||
}
|
}
|
||||||
|
|
||||||
gpio_reset_pin(mPinDc);
|
gpio_reset_pin(mPinDc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue