Tabnine Logo
PinInfo.getHeader
Code IndexAdd Tabnine to your IDE (free)

How to use
getHeader
method
in
com.diozero.api.PinInfo

Best Java code snippets using com.diozero.api.PinInfo.getHeader (Showing top 5 results out of 315)

origin: mattjlewis/diozero

  static byte getPort(PinInfo pinInfo) {
    return (byte) (pinInfo.getHeader() == BeagleBoneBlackBoardInfo.P8_HEADER ? 8 : 9);
  }
}
origin: mattjlewis/diozero

protected void addGeneralPinInfo(PinInfo pinInfo) {
  getPinsForHeader(pinInfo.getHeader()).put(Integer.valueOf(pinInfo.getPinNumber()), pinInfo);
}
 
origin: mattjlewis/diozero

protected void addAdcPinInfo(PinInfo pinInfo) {
  adcs.put(Integer.valueOf(pinInfo.getDeviceNumber()), pinInfo);
  pinsByName.put(pinInfo.getName(), pinInfo);
  
  if (pinInfo.getPinNumber() != PinInfo.NOT_DEFINED) {
    getPinsForHeader(pinInfo.getHeader()).put(Integer.valueOf(pinInfo.getPinNumber()), pinInfo);
  }
}
 
origin: mattjlewis/diozero

protected void addGpioPinInfo(PinInfo pinInfo) {
  gpios.put(Integer.valueOf(pinInfo.getDeviceNumber()), pinInfo);
  pinsByName.put(pinInfo.getName(), pinInfo);
  
  if (pinInfo.getPinNumber() != PinInfo.NOT_DEFINED) {
    getPinsForHeader(pinInfo.getHeader()).put(Integer.valueOf(pinInfo.getPinNumber()), pinInfo);
  }
}
origin: mattjlewis/diozero

protected void addDacPinInfo(PinInfo pinInfo) {
  dacs.put(Integer.valueOf(pinInfo.getDeviceNumber()), pinInfo);
  pinsByName.put(pinInfo.getName(), pinInfo);
  if (pinInfo.getPinNumber() != PinInfo.NOT_DEFINED) {
    getPinsForHeader(pinInfo.getHeader()).put(Integer.valueOf(pinInfo.getPinNumber()), pinInfo);
  }
}
 
com.diozero.apiPinInfogetHeader

Popular methods of PinInfo

  • getDeviceNumber
  • <init>
  • getPinNumber
  • isSupported
  • getKeyPrefix
  • getModes
  • getName
  • getSysFsNumber

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • startActivity (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • String (java.lang)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now