Coder Social home page Coder Social logo

Comments (7)

cyberman54 avatar cyberman54 commented on July 22, 2024 1

@lyusupov
Did you set the GPIO mode before?
using int AXP20X_Class::setGPIOMode(axp_gpio_t gpio, axp_gpio_mode_t mode)

e.g.
axp.setGPIOMode(AXP_GPIO_0, AXP_IO_OUTPUT_HIGH_MODE);

from axp202x_library.

lyusupov avatar lyusupov commented on July 22, 2024 1

e.g.
axp.setGPIOMode(AXP_GPIO_1, AXP_IO_OUTPUT_HIGH_MODE);

Yes, this snippet did the job. Thank you!

I'll keep this ticket open for a while. The axp202_gpio_output.ino demo sketch may need some improvements being made.

from axp202x_library.

lewisxhe avatar lewisxhe commented on July 22, 2024 1

Sorry, I have seen it now, there is no notification of email in GITHUB, I have changed it. Thank you @cyberman54

from axp202x_library.

lyusupov avatar lyusupov commented on July 22, 2024

No, I did not.
I don't see that Lewis does this action in his example sketch.
And I've made a brief look over axp.gpioWrite() implementation and noticed that it makes access to a CONTROL register. So I assume that the mode change is a part of the axp.gpioWrite() operation.
This is not it?

from axp202x_library.

cyberman54 avatar cyberman54 commented on July 22, 2024

So I assume that the mode change is a part of the axp.gpioWrite() operation.
This is not it?

No, it's not. You need to select the mode.

from axp202x_library.

lyusupov avatar lyusupov commented on July 22, 2024

Ok, I'll try. Thanks for the tip!

from axp202x_library.

lyusupov avatar lyusupov commented on July 22, 2024

@lewisxhe
Lewis, it is likely that the notification did not come because you are out of the Watchers list of your own project.
GitHub does typically add the project's owner into "Watchers" automatically. I suspect you likely excluded yourself from the list somehow... 😄

from axp202x_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.