mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-19 11:32:06 +00:00
UC1701 WIP
This commit is contained in:
parent
5d1614989e
commit
fd386d9d7f
@ -1,2 +0,0 @@
|
||||
#include <UC1701.h>
|
||||
|
36
src/nrf52/UC1701Spi.cpp
Normal file
36
src/nrf52/UC1701Spi.cpp
Normal file
@ -0,0 +1,36 @@
|
||||
#include <OLEDDisplay.h>
|
||||
|
||||
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:
|
||||
};
|
Loading…
Reference in New Issue
Block a user