Skip to content

Commit

Permalink
Bring up to standards
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoldsmith committed Jan 1, 2018
1 parent 87a78b6 commit 70e1790
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ The source code is available to clone at: https://github.com/rm-hull/OPi.GPIO
Contributors
^^^^^^^^^^^^
* Simon Rowe (@srowe)
* Steven P. Goldsmith (@sgjava)
18 changes: 9 additions & 9 deletions nanopi/duo.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Richard Hull
# Copyright (c) 2018 Richard Hull & Contributors
# See LICENSE.md for details.

'''
Created on Dec 31, 2017
@author: sgoldsmith
"""
Alternative pin mappings for NanoPi DUO board with/without Mini Shield (see
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_Duo#Layout)
Usage:
import nanopi.duo
from OPi import GPIO
.. code:: python
import nanopi.duo
from OPi import GPIO
GPIO.setmode(nanopi.duo.BOARD)
'''
GPIO.setmode(nanopi.duo.BOARD)
"""

BOARD = {
3: 12, # I2C0_SDA/GPIOA12
Expand Down

0 comments on commit 70e1790

Please sign in to comment.