Commits

Craig Swank  committed dfe8077 Merge

Merge branch 'master' of bitbucket.org:cswank/gadgets

  • Participants
  • Parent commits da7adc9, 20845af

Comments (0)

Files changed (2)

File gadgets/io/poller.py

             self._timeout = -1
 
     def _setup_pin(self, pin):
-        mux = pin['mux']
+        mux = pin.get('mux')
         export = pin['export']
         self._path = self._base_path.format(export, 'value')
-        self._write_to_path('27', self._mux_path.format(mux))
+        if mux:
+            self._write_to_path('27', self._mux_path.format(mux))
         self._write_to_path(str(export), self._export_path)
         self._write_to_path('in', self._base_path.format(export, 'direction'))
         self._write_to_path(self._edge, self._base_path.format(export, 'edge'))

File gadgets/pins/beaglebone_black.py

             },
         },
         9: {
+            12: {
+                'export':60
+            },
+            14: {
+                'export':50
+            },
+            15: {
+                'export':48
+            },
+            16: {
+                'export':51
+            },
         }
     },
 }