Skip to content

Commit

Permalink
Merge pull request #221 from SolderedElectronics/inkplate6PLUS_USB
Browse files Browse the repository at this point in the history
Soldered Inkplate6 PLUS USB Only
  • Loading branch information
BornaBiro authored Oct 12, 2023
2 parents 86b9450 + 4fb30a9 commit e777f56
Show file tree
Hide file tree
Showing 62 changed files with 275 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ void setup() // Initialize everything
Serial.begin(115200);

// Init Inkplate library (you should call this function ONLY ONCE)
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();

// Init BT communication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ BluetoothSerial SerialBT; // Create SerialBT object for Bluetooth communi

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.setTextSize(BIG_TEXT_SCALE); // Scale text to be 5 times bigger then original (5x7 px)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const float temperatureOffset = 0.0;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ Inkplate display(INKPLATE_1BIT);
void setup()
{
// Init Inkplate library (you should call this function ONLY ONCE)
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();

// Init SPI bus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ RTC_DATA_ATTR float decimal = PI;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
createScreen(); // Function that contains everything that has to be written on screen

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)

display.rtcClearAlarmFlag(); // Clear alarm flag from any previous alarm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ RTC_DATA_ATTR int bootCount = 0;
void setup()
{
Serial.begin(115200);
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();

++bootCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ RTC_DATA_ATTR int bootCount = 0;
void setup()
{
Serial.begin(115200);
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();

// Setup I/O expander interrupts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.pinModeIO(LED_PIN,
OUTPUT); // Set P1-7 (or GPB7) to output. On that pin, we sholud connect LED with current limiting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.pinModeIO(LED_PIN, OUTPUT,
IO_INT_ADDR); // Set P1-7 (or GPB7) to output. On that pin, we sholud connect LED with current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Inkplate display(INKPLATE_1BIT); // Create object on Inkplate library and set li

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init library (you should call this function ONLY ONCE)

// Init EEPROM library with 128 of EEPROM size.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ void setup()
{
// Initialize the display and serial
Serial.begin(115200);
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.setTextSize(2); // Scale text to be two times bigger then original (5x7 px)
display.setTextColor(BLACK, WHITE); // Set text color to black and background color to white
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.setTextSize(2); // Scale text to be two times bigger then original (5x7 px)
display.setTextColor(BLACK, WHITE); // Set text color to black and background color to white
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ uint8_t alarmDay = 20;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ void setup()
{
pinMode(39, INPUT_PULLUP); // Set RTC INT pin on ESP32 GPIO39 as input with pullup resistor enabled

// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ uint8_t year = 21;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ int countdown_time = 15;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ SdFile file; // Create SdFile object used for accessing file

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.setTextColor(BLACK); // Set text color to black
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ SdFile file; // Create SdFile object used for accessing file

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ char *dataToWrite = "Hello! This is the file writing example for Inkplate 6Plus.

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ void setup()
Serial.begin(115200);

// Init the display
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();

// Clear the display and print message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ void setup()
Serial.begin(115200);

// Init Inkplate library (you should call this function ONLY ONCE)
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();

// Clear frame buffer of display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ String txt;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Ard

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.setTextSize(2); // Set text size to be 2 times bigger than original (5x7 px)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const char *password = ""; // Your WiFi password

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ int logo_h = 181;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear any data that may have been in (software) frame buffer.
//(NOTE! This does not clean image on screen, it only clears it in the frame buffer inside ESP32).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Inkplate display(INKPLATE_3BIT); // Create object on Inkplate library and set li

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear any data that may have been in (software) frame buffer.
//(NOTE! This does not clean image on screen, it only clears it in the frame buffer inside
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ int n = 0;

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear frame buffer of display
display.display(); // Put clear image on display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ int b = 31; // Variable that holds intensity of the frontlight
void setup()
{
Serial.begin(115200); // Set up a serial communication of 115200 baud
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init Inkplate library
display.frontlight(true); // Enable frontlight circuit
display.setFrontlight(b); // Set frontlight intensity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();
display.clearDisplay();
display.setCursor(100, 300);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();
display.clearDisplay();
display.display();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();
display.display();
// Init touchscreen and power it on after init (send false as argument to put it in deep sleep right after init)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin();
display.clearDisplay();
display.display();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Inkplate display(INKPLATE_1BIT); // Create object on Inkplate library and set li

void setup()
{
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
// Must be called before display.begin()!
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
display.begin(); // Init library (you should call this function ONLY ONCE)
display.clearDisplay(); // Clear any data that may have been in (software) frame buffer.

Expand Down
Loading

0 comments on commit e777f56

Please sign in to comment.