Difference between revisions of "Platform.GPIO.IOMODE"

From Serious Documentation
Jump to: navigation, search
(Created page with "The name '''IOMODE''' refers to a {{Node|group}} of {{Node|constant|constants}} used to configure a GPIO pin. The {{Node|constant|constants}} in this group are: * {{Const|IOM...")
 
 
Line 1: Line 1:
 
The name '''IOMODE''' refers to a {{Node|group}} of {{Node|constant|constants}} used to configure a GPIO pin. The {{Node|constant|constants}} in this group are:
 
The name '''IOMODE''' refers to a {{Node|group}} of {{Node|constant|constants}} used to configure a GPIO pin. The {{Node|constant|constants}} in this group are:
  
* {{Const|IOMODE|IOMODE.INPUT}}
+
* {{Const|IOMODE|IOMODE.INPUT}} - the default; sets a GPIO pin to an input pin
* {{Const|IOMODE|IOMODE.DRIVE_HI}}
+
* {{Const|IOMODE|IOMODE.DRIVE_HI}} - setting the GPIO to {{Const|true}}/{{Const|false}} sets the output high/low respectively
* {{Const|IOMODE|IOMODE.DRIVE_LO}}
+
* {{Const|IOMODE|IOMODE.DRIVE_LO}} - setting the GPIO to {{Const|true}}/{{Const|false}} sets the output low/high respectively
* {{Const|IOMODE|IOMODE.OPEN_DRAIN}}
+
* {{Const|IOMODE|IOMODE.OPEN_DRAIN}} - setting the GPIO to {{Const|true}}/{{Const|false}} sets the output high-Z/low respectively
  
 
These {{Node|constant|constants}} should referred to in the format "''GPIO.IOMODE.INPUT'''". Do '''not''' create any other node with the exact name "IOMODE".
 
These {{Node|constant|constants}} should referred to in the format "''GPIO.IOMODE.INPUT'''". Do '''not''' create any other node with the exact name "IOMODE".

Latest revision as of 13:44, 29 March 2019

The name IOMODE refers to a group of constants used to configure a GPIO pin. The constants in this group are:

These constants should referred to in the format "GPIO.IOMODE.INPUT'". Do not create any other node with the exact name "IOMODE".