aboutsummaryrefslogtreecommitdiff
path: root/templates/arduino-uno.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-08-07 22:20:45 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-08-07 22:21:31 +0200
commitfd0e6e3aa0e7523a36011a2f0264737772aa5e24 (patch)
tree9ada25e6f4d072e2fc01ca62120cc416af8fc716 /templates/arduino-uno.py
parent535d856a39b177642724bcfe6009985bf4262dbd (diff)
downloadkicad-utils-fd0e6e3aa0e7523a36011a2f0264737772aa5e24.tar.gz
kicad-utils-fd0e6e3aa0e7523a36011a2f0264737772aa5e24.tar.bz2
kicad-utils-fd0e6e3aa0e7523a36011a2f0264737772aa5e24.tar.xz
kicad-utils-fd0e6e3aa0e7523a36011a2f0264737772aa5e24.zip
templates: nodemcu-arduino: NodeMCU with Arduino.
o Moving headers so they match the namespace they declare. o Reducing debug logging.
Diffstat (limited to 'templates/arduino-uno.py')
-rw-r--r--templates/arduino-uno.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/arduino-uno.py b/templates/arduino-uno.py
index a7b4ec7..ada59a3 100644
--- a/templates/arduino-uno.py
+++ b/templates/arduino-uno.py
@@ -4,7 +4,7 @@ generateHeader.println("""
namespace schematic {
""")
-usages = generateHeader.netlist.find_usages_of(generateHeader.ref)
+usages = generateHeader.netlist.find_nets_using_ref(generateHeader.ref)
for usage in usages:
node = usage.node_for_ref(generateHeader.ref)
@@ -12,7 +12,7 @@ for usage in usages:
if 7 <= node.pin <= 12:
generateHeader.println("static const int ANALOG_" + usage.name + " = " + str(node.pin - 7) + ";")
elif 13 <= node.pin <= 26:
- generateHeader.println("static const int ANALOG_" + usage.name + " = " + str(node.pin - 13) + ";")
+ generateHeader.println("static const int " + usage.name + " = " + str(node.pin - 13) + ";")
generateHeader.println("""
} // namespace schematic