Skip to content

Commit

Permalink
Inkplate 10 (esphome#4582)
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <[email protected]>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent 8d65c41 commit a8948df
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions components/display/inkplate6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,98 @@ Below is a config example:
pca6416a: pca6416a_hub
number: 5
Inkplate 10
***********

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.
Below is a config example:

.. code-block:: yaml
time:
- platform: pcf85063
id: esptime
# repeated synchronization is not necessary unless the external RTC
# is much more accurate than the internal clock
update_interval: never
- platform: homeassistant
# instead try to synchronize via network repeatedly ...
on_time_sync:
then:
# ... and update the RTC when the synchronization was successful
pcf85063.write_time:
pca6416a:
- id: pca6416a_hub
address: 0x20
# Primary expander for display control and additional I/O
- id: pca6416a_hub2
address: 0x21
# Secondary expander for additional I/O
switch:
- platform: gpio
id: battery_read_mosfet
pin:
pca6416a: pca6416a_hub
number: 9
sensor:
- platform: adc
id: battery_voltage
update_interval: never
attenuation: 12db
pin: 35
- platform: template
name: "Inkplate Battery Voltage"
unit_of_measurement: "V"
accuracy_decimals: 3
lambda: |-
// Enable MOSFET to connect battery voltage divider
id(battery_read_mosfet).turn_on();
// Wait for voltage to stabilize
delay(5);
// Sample ADC value
float adc = id(battery_voltage).sample();
// Disable MOSFET to save power
id(battery_read_mosfet).turn_off();
return adc;
filters:
- multiply: 2 # Compensate for voltage divider (1:2 ratio)
display:
- platform: inkplate6
id: inkplate_display
greyscale: true
partial_updating: false
update_interval: never
model: inkplate_10
ckv_pin: 32
sph_pin: 33
gmod_pin:
pca6416a: pca6416a_hub
number: 1
gpio0_enable_pin:
pca6416a: pca6416a_hub
number: 8
oe_pin:
pca6416a: pca6416a_hub
number: 0
spv_pin:
pca6416a: pca6416a_hub
number: 2
powerup_pin:
pca6416a: pca6416a_hub
number: 4
wakeup_pin:
pca6416a: pca6416a_hub
number: 3
vcom_pin:
pca6416a: pca6416a_hub
number: 5
See Also
--------

Expand Down

0 comments on commit a8948df

Please sign in to comment.