Difference between revisions of "Template:CI20 GPIO"

From eLinux.org
Jump to: navigation, search
m (remove table I forgot to remove)
m (Correct colour, I misread it)
Line 1: Line 1:
<span title="Linux GPIO number: {{#expr: {{#switch: {{{1}}} | PA = 0 | PB = 32 | PC = 64 | PD = 96 | PE = 128 | PF = 160 | 1000}} + {{{2|0}}} }}" style="border-bottom:1px dotted; background-color: #FCD484" class="help">{{{1}}}{{{2}}}</span><noinclude>
+
<span title="Linux GPIO number: {{#expr: {{#switch: {{{1}}} | PA = 0 | PB = 32 | PC = 64 | PD = 96 | PE = 128 | PF = 160 | 1000}} + {{{2|0}}} }}" style="border-bottom:1px dotted; background-color: #FCD4B4" class="help">{{{1}}}{{{2}}}</span><noinclude>
 
== About ==
 
== About ==
 
This template shows a CI20 GPIO name with a tooltip showing the Linux GPIO number.
 
This template shows a CI20 GPIO name with a tooltip showing the Linux GPIO number.

Revision as of 13:16, 18 August 2014

{{{1}}}{{{2}}}

About

This template shows a CI20 GPIO name with a tooltip showing the Linux GPIO number.

Usage

Two arguments are expected:

  1. The block of GPIOS, must be one of "PA", "PB", "PC", "PD", "PE", "PF".
  2. The numeric offset into the block of gpios.

Examples

{{CI20 GPIO|PF|16}}