You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/display/inkplate6.rst
+92Lines changed: 92 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -426,6 +426,98 @@ Below is a config example:
426
426
pca6416a: pca6416a_hub
427
427
number: 5
428
428
429
+
430
+
Inkplate 10
431
+
***********
432
+
433
+
The Inkplate 10 has a configuration similar to 5 and 6, except it has 2 expanders and the battery read MOSFET is not inverted. Also, some versions have an embedded RTC to aid in clock sync.
434
+
Below is a config example:
435
+
436
+
.. code-block:: yaml
437
+
438
+
time:
439
+
- platform: pcf85063
440
+
id: esptime
441
+
# repeated synchronization is not necessary unless the external RTC
442
+
# is much more accurate than the internal clock
443
+
update_interval: never
444
+
- platform: homeassistant
445
+
# instead try to synchronize via network repeatedly ...
446
+
on_time_sync:
447
+
then:
448
+
# ... and update the RTC when the synchronization was successful
449
+
pcf85063.write_time:
450
+
451
+
pca6416a:
452
+
- id: pca6416a_hub
453
+
address: 0x20
454
+
# Primary expander for display control and additional I/O
455
+
- id: pca6416a_hub2
456
+
address: 0x21
457
+
# Secondary expander for additional I/O
458
+
459
+
switch:
460
+
- platform: gpio
461
+
id: battery_read_mosfet
462
+
pin:
463
+
pca6416a: pca6416a_hub
464
+
number: 9
465
+
466
+
sensor:
467
+
- platform: adc
468
+
id: battery_voltage
469
+
update_interval: never
470
+
attenuation: 12db
471
+
pin: 35
472
+
- platform: template
473
+
name: "Inkplate Battery Voltage"
474
+
unit_of_measurement: "V"
475
+
accuracy_decimals: 3
476
+
lambda: |-
477
+
// Enable MOSFET to connect battery voltage divider
478
+
id(battery_read_mosfet).turn_on();
479
+
// Wait for voltage to stabilize
480
+
delay(5);
481
+
// Sample ADC value
482
+
float adc = id(battery_voltage).sample();
483
+
// Disable MOSFET to save power
484
+
id(battery_read_mosfet).turn_off();
485
+
return adc;
486
+
filters:
487
+
- multiply: 2# Compensate for voltage divider (1:2 ratio)
0 commit comments