Skip to content

Commit e777f56

Browse files
authored
Merge pull request #221 from SolderedElectronics/inkplate6PLUS_USB
Soldered Inkplate6 PLUS USB Only
2 parents 86b9450 + 4fb30a9 commit e777f56

File tree

62 files changed

+275
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+275
-7
lines changed

examples/Inkplate6PLUS/Advanced/Communications/Inkplate6PLUS_Bluetooth_Peripheral_Mode/Inkplate6PLUS_Bluetooth_Peripheral_Mode.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ void setup() // Initialize everything
5050
Serial.begin(115200);
5151

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

5558
// Init BT communication

examples/Inkplate6PLUS/Advanced/Communications/Inkplate6PLUS_Bluetooth_Serial/Inkplate6PLUS_Bluetooth_Serial.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ BluetoothSerial SerialBT; // Create SerialBT object for Bluetooth communi
4040

4141
void setup()
4242
{
43+
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
44+
// Must be called before display.begin()!
45+
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
4346
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
4447
display.clearDisplay(); // Clear frame buffer of display
4548
display.setTextSize(BIG_TEXT_SCALE); // Scale text to be 5 times bigger then original (5x7 px)

examples/Inkplate6PLUS/Advanced/Communications/Inkplate6PLUS_EasyC/Inkplate6PLUS_EasyC.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const float temperatureOffset = 0.0;
3838

3939
void setup()
4040
{
41+
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
42+
// Must be called before display.begin()!
43+
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
4144
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
4245
display.clearDisplay(); // Clear frame buffer of display
4346
display.display(); // Put clear image on display

examples/Inkplate6PLUS/Advanced/Communications/Inkplate6PLUS_Second_SPI/Inkplate6PLUS_Second_SPI.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ Inkplate display(INKPLATE_1BIT);
5656
void setup()
5757
{
5858
// Init Inkplate library (you should call this function ONLY ONCE)
59+
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
60+
// Must be called before display.begin()!
61+
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
5962
display.begin();
6063

6164
// Init SPI bus

examples/Inkplate6PLUS/Advanced/DeepSleep/Inkplate6PLUS_Partial_Update_With_Deep_Sleep/Inkplate6PLUS_Partial_Update_With_Deep_Sleep.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ RTC_DATA_ATTR float decimal = PI;
4242

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

examples/Inkplate6PLUS/Advanced/DeepSleep/Inkplate6PLUS_RTC_Alarm_With_Deep_Sleep/Inkplate6PLUS_RTC_Alarm_With_Deep_Sleep.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
2727

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

3235
display.rtcClearAlarmFlag(); // Clear alarm flag from any previous alarm

examples/Inkplate6PLUS/Advanced/DeepSleep/Inkplate6PLUS_Wake_Up_Button/Inkplate6PLUS_Wake_Up_Button.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ RTC_DATA_ATTR int bootCount = 0;
3535
void setup()
3636
{
3737
Serial.begin(115200);
38+
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
39+
// Must be called before display.begin()!
40+
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
3841
display.begin();
3942

4043
++bootCount;

examples/Inkplate6PLUS/Advanced/DeepSleep/Inkplate6PLUS_Wake_Up_On_Touchscreen/Inkplate6PLUS_Wake_Up_On_Touchscreen.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ RTC_DATA_ATTR int bootCount = 0;
4040
void setup()
4141
{
4242
Serial.begin(115200);
43+
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
44+
// Must be called before display.begin()!
45+
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
4346
display.begin();
4447

4548
// Setup I/O expander interrupts

examples/Inkplate6PLUS/Advanced/IO/Inkplate6PLUS_External_IO_Expander/Inkplate6PLUS_External_IO_Expander.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
3333

3434
void setup()
3535
{
36+
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
37+
// Must be called before display.begin()!
38+
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
3639
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
3740
display.pinModeIO(LED_PIN,
3841
OUTPUT); // Set P1-7 (or GPB7) to output. On that pin, we sholud connect LED with current limiting

examples/Inkplate6PLUS/Advanced/IO/Inkplate6PLUS_Internal_IO_Expander/Inkplate6PLUS_Internal_IO_Expander.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
3939

4040
void setup()
4141
{
42+
// Uncomment this line if you have a USB Power Only Inkplate6PLUS
43+
// Must be called before display.begin()!
44+
//display.setInkplatePowerMode(INKPLATE_USB_PWR_ONLY);
4245
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
4346
display.pinModeIO(LED_PIN, OUTPUT,
4447
IO_INT_ADDR); // Set P1-7 (or GPB7) to output. On that pin, we sholud connect LED with current

0 commit comments

Comments
 (0)