old_contents: # Copyright (C) 2016 Synapse Wireless, Inc.
  # Subject to your agreement of the disclaimer set forth below, permission is given by Synapse Wireless, Inc. ("Synapse") to you to freely modify, redistribute or include this SNAPpy code in any program. The purpose of this code is to help you understand and learn about SNAPpy by code examples.
  # BY USING ALL OR ANY PORTION OF THIS SNAPPY CODE, YOU ACCEPT AND AGREE TO THE BELOW DISCLAIMER. If you do not accept or agree to the below disclaimer, then you may not use, modify, or distribute this SNAPpy code.
  # THE CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. UNDER NO CIRCUMSTANCES WILL SYNAPSE BE LIABLE TO YOU, OR ANY OTHER PERSON OR ENTITY, FOR ANY LOSS OF USE, REVENUE OR PROFIT, LOST OR DAMAGED DATA, OR OTHER COMMERCIAL OR ECONOMIC LOSS OR FOR ANY DAMAGES WHATSOEVER RELATED TO YOUR USE OR RELIANCE UPON THE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR IF SUCH DAMAGES ARE FORESEEABLE. THIS DISCLAIMER OF WARRANTY AND LIABILITY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
  
  """GPIO-related assignments for the Pyduino based on the Synapse SM220 module."""
  
  # GPIO enums to be used in example scripts, mapped to Pyduino IO numbers as supported by the SNAP core firmware
  D0 = 16
  D1 = 17
  D2 = 20
  D3 = 5
  D4 = 23
  D5 = 6
  D6 = 7
  D7 = 12
  D8 = 0
  D9 = 19
  D10 = 21
  D11 = 37
  D12 = 4
  D13 = 22
  SDA = 9
  SCL = 8
  
  # Analog channels
  A0 = 0
  A1 = 1
  A2 = 4
  A3 = 5
  A4 = 6
  A5 = 7
  SENSE_5V = 2
  
  # User-controlled LED
  LED_PIN = 18
  
  # List of pin assignments that can be iterated over in GPIO-order (i.e. GPIO 0 is 16, GPIO 1 is 17, etc...)
  GPIO_TO_IO_LIST = (16,17,20,5,23,6,7,12,0,19,21,37,4,22,9,8)
  
  
new_contents: # Copyright (C) 2016 Synapse Wireless, Inc.
  # Subject to your agreement of the disclaimer set forth below, permission is given by Synapse Wireless, Inc. ("Synapse") to you to freely modify, redistribute or include this SNAPpy code in any program. The purpose of this code is to help you understand and learn about SNAPpy by code examples.
  # BY USING ALL OR ANY PORTION OF THIS SNAPPY CODE, YOU ACCEPT AND AGREE TO THE BELOW DISCLAIMER. If you do not accept or agree to the below disclaimer, then you may not use, modify, or distribute this SNAPpy code.
  # THE CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. UNDER NO CIRCUMSTANCES WILL SYNAPSE BE LIABLE TO YOU, OR ANY OTHER PERSON OR ENTITY, FOR ANY LOSS OF USE, REVENUE OR PROFIT, LOST OR DAMAGED DATA, OR OTHER COMMERCIAL OR ECONOMIC LOSS OR FOR ANY DAMAGES WHATSOEVER RELATED TO YOUR USE OR RELIANCE UPON THE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR IF SUCH DAMAGES ARE FORESEEABLE. THIS DISCLAIMER OF WARRANTY AND LIABILITY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
  
  """GPIO-related assignments for the Pyduino based on the Synapse SM220 module."""
  
  # GPIO enums to be used in example scripts, mapped to Pyduino IO numbers as supported by the SNAP core firmware
  D0 = 16
  D1 = 17
  D2 = 20
  D3 = 5
  D4 = 23
  D5 = 6
  D6 = 7
  D7 = 12
  D8 = 0
  D9 = 19
  D10 = 21
  D11 = 37
  D12 = 4
  D13 = 22
  SDA = 9
  SCL = 8
  
  # Analog channels
  A0 = 0
  A1 = 1
  A2 = 4
  A3 = 5
  A4 = 6
  A5 = 7
  SENSE_5V = 2
  
  # User-controlled LED
  LED_PIN = 18
  
  # List of pin assignments that can be iterated over in Pyduino-pin-order (i.e. D0 is 16, D1 is 17, etc...)
  DIGITAL_TO_IO_LIST = (16, 17, 20, 5, 23, 6, 7, 12, 0, 19, 21, 37, 4, 22, 9, 8)
  ANALOG_LIST = (A0, A1, A2, A3, A4, A5)
  
  
subject: Fix up IO-to-pin iterable lists.