Difference between revisions of "Template:CI20 GPIO"

From eLinux.org
Jump to: navigation, search
(Add experimental template for CI20 GPIOs)
 
m (round corners a little)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="background-color: #FCD4B4"
+
<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; border-radius:5px 5px 5px 5px" 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: #FCD484" 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.

Latest revision as of 14:34, 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}}