Skip to content

Latest commit

 

History

History

list_pins_with_modes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

List Pins with Modes

by Kay Anar on July 15, 2014

Sample Output

 _____                 _
|   __|___ ___ ___ _ _|_|___ ___
|   __|_ -| . |  _| | | |   | . |
|_____|___|  _|_| |___|_|_|_|___|
          |_| http://espruino.com
 1v67 Copyright 2014 G.Williams
>echo(0);
Pin Modes :
    00   01 _ 02   03   04_  05   06   07   08   09   10   11   12   13   14   15
  +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
A | in | in | in | in | in | in | in | in | in | ao | iu | ud | ud | in | in | in |
  +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
B | in | in | in | in | in | in | in | in | in | in | in | in | in | ud | ud | ud |
  +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
C | in | in | in | in | in | in | in | in | in | in | in | in | in | op | in | in |
  +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
D | in | in | ud | na | na | na | na | na | na | na | na | na | na | na | na | na |
  +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
Legend :
  in : Input                    iu : Input Pull Up            id : Input Pull Down
  op : Output                   od : Open Drain               ao : AF Output
  ad : AF Open Drain            ud : Undefined                na : Pin Not Exits
=undefined
> 

Bug tracker

Have a bug? Please create an issue here on GitHub!

Twitter account

Keep up to date on announcements and more by following Anar Software LLC on Twitter, @AnarSoft.

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b myEspruino)
  3. Commit your changes (git commit -am "Added New Espruino Sample")
  4. Push to the branch (git push origin myEspruino)
  5. Create an issue with a link to your branch

License

Espruino by Examples < http://git.io/ebe >

Copyright (c) 2014 Anar Software LLC. < http://anars.com >

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/licenses/gpl.html