Reglobalised sd card object.

This commit is contained in:
nitko12 2020-09-15 08:37:15 +02:00
parent cb5c74138b
commit 933be84808
3 changed files with 70 additions and 70 deletions

View File

@ -194,7 +194,6 @@ void Inkplate::display1b()
{
memcpy(DMemoryNew, _partial, 60000);
uint32_t _send;
uint8_t data;
uint8_t dram;
@ -598,7 +597,6 @@ void Inkplate::hscan_start(uint32_t _d)
SPH_SET;
}
void Inkplate::vscan_end()
{
CKV_CLEAR;
@ -608,7 +606,6 @@ void Inkplate::vscan_end()
CKV_SET;
}
void Inkplate::pinsZstate()
{
pinMode(0, INPUT);

View File

@ -9,9 +9,14 @@
#include "include/Graphics.h"
#include "include/System.h"
#include "SPI.h"
#include "libs/SdFat/SdFat.h"
#include "include/defines.h"
extern SPIClass spi2;
extern SdFat sd;
class Inkplate : public System, public Graphics
{
public:
@ -56,9 +61,7 @@ class Inkplate : public System, public Graphics
uint8_t _beginDone = 0;
const uint8_t waveform3Bit[8][8] = {{0, 0, 0, 0, 1, 1, 1, 0}, {1, 2, 2, 2, 1, 1, 1, 0}, {0, 1, 2, 1, 1, 2, 1, 0},
{0, 2, 1, 2, 1, 2, 1, 0}, {0, 0, 0, 1, 1, 1, 2, 0}, {2, 1, 1, 1, 2, 1, 2, 0},
{1, 1, 1, 2, 1, 2, 2, 0}, {0, 0, 0, 0, 0, 0, 2, 0}};
const uint8_t waveform3Bit[8][8] = {{0, 0, 0, 0, 1, 1, 1, 0}, {1, 2, 2, 2, 1, 1, 1, 0}, {0, 1, 2, 1, 1, 2, 1, 0}, {0, 2, 1, 2, 1, 2, 1, 0}, {0, 0, 0, 1, 1, 1, 2, 0}, {2, 1, 1, 1, 2, 1, 2, 0}, {1, 1, 1, 2, 1, 2, 2, 0}, {0, 0, 0, 0, 0, 0, 2, 0}};
const uint32_t waveform[50] = {
0x00000008, 0x00000008, 0x00200408, 0x80281888, 0x60A81898, 0x60A8A8A8, 0x60A8A8A8, 0x6068A868, 0x6868A868,
0x6868A868, 0x68686868, 0x6A686868, 0x5A686868, 0x5A686868, 0x5A586A68, 0x5A5A6A68, 0x5A5A6A68, 0x55566A68,