bankspec = OrderedDict()
self.offs = 0
pkeys = self.pinbanks.keys()
- print self.pinbanks
+ print (self.pinbanks)
for kn in pkeys:
bankspec[kn] = self.offs
self.offs += self.pinbanks[kn]
self.scenarios.append((name, needed, eint, pwm, descriptions))
- def write(self, pyf, of, pinmap):
+ def pywrite(self, pyf, pinmap):
+ return python_dict_fns(pyf, pinmap, self, self.function_names)
- fns = python_dict_fns(pyf, pinmap, self, self.function_names)
+ def write(self, of):
of.write("""# Pinouts (PinMux)
auto-generated by [[pinouts.py]]