Code Monkey home page Code Monkey logo

Comments (3)

thejpster avatar thejpster commented on August 16, 2024

The default value is 0x56 or 0b01010110 which is bits 1, 2, 4 and 6. This is equal to:

  • OD = 0 = Output Enabled
  • IE = 1 = Input Enabled
  • DRIVE = 0b01 = 4mA
  • PUE = 0 = Pull-Up Disabled
  • PDE = 1 = Pull-Down Enabled
  • SCHMITT = 1 = Schmitt Input Enabled
  • SLEWFAST = 0 = Slow GPIO Mode

I think this means the two lines I highlighted above are at least /harmless/, as they reset the pin to defaults, and then change one specific bit to a value that it already has in the default.

from rp-hal.

9names avatar 9names commented on August 16, 2024

I mentioned this in matrix but didn't remember to make an issue for it.
There was another write/modify mixup caught in a review comment on the PWM rework PR, but it's good to have a reminder that it's not done yet.

from rp-hal.

9names avatar 9names commented on August 16, 2024

Fixed in #80

from rp-hal.

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.