diff --git a/src/nrf52/UC1701Adapter.cpp b/src/nrf52/UC1701Adapter.cpp deleted file mode 100644 index 72d4992a7..000000000 --- a/src/nrf52/UC1701Adapter.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include - diff --git a/src/nrf52/UC1701Spi.cpp b/src/nrf52/UC1701Spi.cpp new file mode 100644 index 000000000..d6f236cfd --- /dev/null +++ b/src/nrf52/UC1701Spi.cpp @@ -0,0 +1,36 @@ +#include + +class UC1701Spi : public OLEDDisplay +{ + private: + uint8_t _rst; + uint8_t _dc; + uint8_t _cs; + + public: + UC1701Spi() { setGeometry(GEOMETRY_128_64); } + + bool connect() + { + /* + pinMode(_dc, OUTPUT); + pinMode(_cs, OUTPUT); + pinMode(_rst, OUTPUT); + + SPI.begin(); + SPI.setClockDivider(SPI_CLOCK_DIV2); + + // Pulse Reset low for 10ms + digitalWrite(_rst, HIGH); + delay(1); + digitalWrite(_rst, LOW); + delay(10); + digitalWrite(_rst, HIGH); + */ + return true; + } + + void display(void) {} + + private: +}; \ No newline at end of file