1 """Allows useful indirection to test Pin naming logic by switching platform in testing
 
   2     or where auto-detection is not feasible (e.g. multiple ESP8266 boards architecturally identical)
 
   7     platform = sys.platform
 
  11 # TODO switch name of platform below to be microcontroller
 
  12 if platform is not None:
 
  13     if platform == "esp8266":
 
  14         board = "feather_huzzah"
 
  15     elif platform == "samd21":
 
  16         board="feather_m0_express"
 
  17     elif platform == "pyboard":
 
  23 implementation = sys.implementation.name
 
  24 if implementation == "micropython":
 
  26 elif implementation == "circuitpython":