Closed I-hate-2FA closed 4 months ago
Sounds awesome. It's easy to implement making pin optional or maybe esphome has some fake pin. Feel free to implement. I'll help in PR even if will not work right away.
btw using gpio38 will cause kernel panic
That's strange. I have it in use:
esphome:
name: furnace
platformio_options:
board_build.f_cpu: '240000000L'
esp32:
board: esp32-s2-saola-1
framework:
type: arduino
external_components:
- source: "github://asergunov/7segment_gpio"
refresh: 0s
display:
- platform: 7segment_gpio
id: lcd
digit_pins: [1,2,6,4]
iterate_digits: false
segment_pins:
- 21 # g
- 40 # f
- 14 # e
- 10 # d
- 36 # c
- 17 # b
- 34 # a
- 8 # .
colon_pin: 38
degree_pin: 13
update_interval: 1s
Maybe framework
or board
is different? Or ESPHome version. I'm using 2024.5.5. Which is yours?
Edit: looks like you are using ESP32
yes i am using original esp32, gpio34-38 hardware does not allow output, i just thought it as good way to disable that output, but it didnt work
Sounds awesome. It's easy to implement making pin optional or maybe esphome has some fake pin. Feel free to implement. I'll help in PR even if will not work right away.
idk how to make external component, as you can see i am still relying on custom sensor which technically is depricated
i am using version 2024.6.4
yes i am using original esp32, gpio34-38 hardware does not allow output, i just thought it as good way to disable that output, but it didnt work
Yup. You need another pins.
so latest version allow to use these pin as placeholder now? because there is breaking bug in esphome now, everytime i want to compile i need uninstall and reinstall esphome addon https://github.com/esphome/issues/issues/5998 it is very hard to test things
@I-hate-2FA I've made code changes but not tested. Could please let me know if it works? https://github.com/asergunov/7segment_gpio/pull/6
Just remove or comment out your digit_pins
reinstall esphome addon
I'm using the local install. Hardest part is to create venv
python -m venv `.venv`
and activate it
What OS you are using? On Linux it will be
source ./.venv/bin/activate
Then just install esphome
pip install esphome
and you are ready to go
i am using windows on my pc, and home assistant os on server if i can acess inside container, i can probably just delete the old build file manually, but because home assistant os is lock down i cannot, so install esphome on pc is a option
Just remove or comment out your
digit_pins
how can i update the external component to latest
external_components:
- source: "github://asergunov/7segment_gpio@one-digit-support"
refresh: 0s
Just add branch name and make sure refresh is 0s so it will pull repo every build
For the dot I can't see any limitations in code. Looks like it should work if you specify just 7 segment pins.
For the dot I can't see any limitations in code. Looks like it should work if you specify just 7 segment pins.
i tried that the first time, but i didnt look closely at the error so i thought it wont work
seems to work with current config:
display:
- platform: 7segment_gpio
id: sevenseg
segment_pins:
- number: 4
inverted: True
- number: 16
inverted: True
- number: 17
inverted: True
- number: 5
inverted: True
- number: 18
inverted: True
- number: 23
inverted: True
- number: 19
inverted: True
update_interval: 100ms
lambda: |-
if(id(keepon).state){
if((millis()%2000) < 500){
it.printf(0,"O");
}else if((millis()%2000) < 1000){
it.printf(0,"P");
}else if((millis()%2000) < 1500){
it.printf(0,"E");
}else{
it.printf(0,"n");
}
}else if(id(ledr).state){
it.printf(0,"%d",id(timer));
}else{
it.printf(0,"H");
}
thanks allot! it is very helpful project
Awesome. I've merged PR and removed branch. Please remove @one-digit-support
to make it work
For pin inversion I've opened #8 . Feel free to implement. Doesn't look hard
Thanks for sharing. Feels good! Thanks for contribution!
Look at that. I've spotted a bug. That's why it was not stop on generation stage https://github.com/asergunov/7segment_gpio/pull/9
Could please check if it work so I could merge it?
Thanks! Looks like everything is resolved here. Can we close it?
i am using single digit 7 segment display with just 8 connection without decimal point, and single digit does not need digit pin for multiplex, it can be connected directly to 3v3, since 7 segment display without shift register is already such a waste of pins, i want to save these 2 for other use, i hope you can add option to ommit it
btw using gpio38 will cause kernel panic