Skip to content

Commit a8948df

Browse files
karlg100coderabbitai[bot]jesserockz
authored
Inkplate 10 (#4582)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
1 parent 8d65c41 commit a8948df

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

components/display/inkplate6.rst

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,98 @@ Below is a config example:
426426
pca6416a: pca6416a_hub
427427
number: 5
428428
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)
488+
489+
display:
490+
- platform: inkplate6
491+
id: inkplate_display
492+
greyscale: true
493+
partial_updating: false
494+
update_interval: never
495+
model: inkplate_10
496+
497+
ckv_pin: 32
498+
sph_pin: 33
499+
gmod_pin:
500+
pca6416a: pca6416a_hub
501+
number: 1
502+
gpio0_enable_pin:
503+
pca6416a: pca6416a_hub
504+
number: 8
505+
oe_pin:
506+
pca6416a: pca6416a_hub
507+
number: 0
508+
spv_pin:
509+
pca6416a: pca6416a_hub
510+
number: 2
511+
powerup_pin:
512+
pca6416a: pca6416a_hub
513+
number: 4
514+
wakeup_pin:
515+
pca6416a: pca6416a_hub
516+
number: 3
517+
vcom_pin:
518+
pca6416a: pca6416a_hub
519+
number: 5
520+
429521
See Also
430522
--------
431523

0 commit comments

Comments
 (0)