Skip to content

viam-modules/pinctrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The pinctrl module implements a board component that accesses the hardware directly to control GPIO pins. Pinctrl allows boards to configure pull up/pull down resistors and switch between hardware PWM and GPIO modes. Currently, the raspberry pi 5 is supported.

Models

very-real:pinctrl:rpi5

Attributes

pulls

The pulls attribute is used to configure pull up and pull down resistors on pins.

The following attributes are avaliable for pulls:

Attribute Type Required? Description
pin string Required The physical pin number
pull string Required The direction to pull the pin. Options are up, down and none

Example Configuration

  {
      "name": "pinctrl-pi5",
      "model": "very-real:pinctrl:rpi5",
      "type": "board",
      "namespace": "rdk",
      "attributes": {
        "pulls" : {
          [
          {
            "pin": "35",
            "pull": "up"
          },
            {
            "pin": "10",
            "pull": "down"
          },
          {
            "pin": "13",
            "pull": "none"
          },
          ]
        }
      }
  }

Note that this module is experimental.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •