Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't control behavior and pins of AXP2101 #5

Open
VBMek opened this issue Feb 10, 2024 · 0 comments
Open

I can't control behavior and pins of AXP2101 #5

VBMek opened this issue Feb 10, 2024 · 0 comments

Comments

@VBMek
Copy link

VBMek commented Feb 10, 2024

During my research on repository of martydingo with AXP192 and m5stack Core2 i noticed that some devices PWR pins and RST or EN pins are connected to AXP192 and AXP2101. Version 1.1 of Core2 has same topology everything is connected to AXP2101 (https://docs.m5stack.com/en/core/Core2%20v1.1?id=pinmap). What i wanted to do is to have ability to control those pins same way as in AXP192. I looked and comapred your code to AXP192 which is very similar, but Im not able (maybe lack of knowledge) to do it same way as in AXP192. What i found out that in AXP192 others are use something like this:

- lambda: "axp192_axp192component->set_brightness(0.5);"
- lambda: "axp192_axp192component->LDO(true);"

my failed result of using it with AXP2101 is:

  on_boot: 
    priority: 600
    then: 
      lambda: |-
        axp2101_axp2101component->AXP_VRTC(true);
<unicode string>: In lambda function:
<unicode string>:19:7: error: 'axp2101_axp2101component' was not declared in this scope

as you can see i changed axp192 in that command to axp2101 which didn't worked at all. Pins which are connected to AXP2101:

AXP_ALDO2 - ILI9342C RST
AXP_BLDO1 - ILI9342C BL
AXP_ALDO4 - ILI9342C PWR
AXP_ALDO2 - FT6336U RST
AXP_ALDO3 - NS4168 SPK_EN
AXP_VRTC - Blue LED
AXP_DLDO1 - Vibration motor
AXP_IRQ - BM8563 INT
  • Can you give me/us information about how to use those pins in esphome ?
  • Also i noticed that after installing esphome it no longer enables power when there is no usb power connected. Is it something with AXP2101 implementation (battery is charged to 100%) ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant