mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-25 22:11:29 +01:00
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>
This commit is contained in:
parent
8d65c41e96
commit
a8948df387
@ -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
|
||||
--------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user