How to Set Up For Display? #306
Replies: 2 comments 1 reply
-
Did you find a solution or do you need some support? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found the solution. It was the silliest thing, %.0F worked but %.0f did
not despite it being what the documentation on esphome said.
…On Sat, Apr 8, 2023, 2:09 PM Sebastian Muszynski ***@***.***> wrote:
Did you find a solution or do you need some support?
—
Reply to this email directly, view it on GitHub
<#306 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7BTEAGKW3HR6FVEQCTBINTXAGSWFANCNFSM6AAAAAAWXPY6MA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
sensor:
jk_bms_ble_id: bms0
state_of_charge:
name: "${name} state of charge"
id: batterysoc
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
font:
id: robotomed
size: 20
display:
model: "SH1106 128x64"
cs_pin: GPIO5
dc_pin: GPIO17
reset_pin: GPIO16
lambda: |-
it.printf(0, 0, id(robotomed), "Battery: %.1F", id(XXXXXXXXXX).state);
What do I fill near the XXXXXXX? I've tried batterysoc, bms0, I've tried appending .cstr().
I've been trying different things for hours and at least 4 different error codes. Can someone smarter than me help me out?
Beta Was this translation helpful? Give feedback.
All reactions