Due compatibility
Trivial changes for Due compatibility
This commit is contained in:
+4
-1
@@ -72,8 +72,10 @@ boolean Adafruit_RA8875::begin(enum RA8875sizes s) {
|
|||||||
delay(100);
|
delay(100);
|
||||||
|
|
||||||
SPI.begin();
|
SPI.begin();
|
||||||
|
#ifdef __AVR__
|
||||||
SPI.setClockDivider(SPI_CLOCK_DIV128);
|
SPI.setClockDivider(SPI_CLOCK_DIV128);
|
||||||
SPI.setDataMode(SPI_MODE0);
|
SPI.setDataMode(SPI_MODE0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (readReg(0) != 0x75) {
|
if (readReg(0) != 0x75) {
|
||||||
return false;
|
return false;
|
||||||
@@ -81,8 +83,9 @@ boolean Adafruit_RA8875::begin(enum RA8875sizes s) {
|
|||||||
|
|
||||||
initialize();
|
initialize();
|
||||||
|
|
||||||
|
#ifdef __AVR__
|
||||||
SPI.setClockDivider(SPI_CLOCK_DIV4);
|
SPI.setClockDivider(SPI_CLOCK_DIV4);
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ typedef struct Point
|
|||||||
int32_t y;
|
int32_t y;
|
||||||
} tsPoint_t;
|
} tsPoint_t;
|
||||||
|
|
||||||
typedef struct Matrix
|
typedef struct //Matrix
|
||||||
{
|
{
|
||||||
int32_t An,
|
int32_t An,
|
||||||
Bn,
|
Bn,
|
||||||
|
|||||||
Reference in New Issue
Block a user