mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(datasheet): add analog pins to project pdf
This commit is contained in:
@@ -13,3 +13,13 @@
|
|||||||
{{#pins}}
|
{{#pins}}
|
||||||
| {{pin_index}} | {{&ui}} | {{&uo}} | {{&uio}} |
|
| {{pin_index}} | {{&ui}} | {{&uo}} | {{&uio}} |
|
||||||
{{/pins}}
|
{{/pins}}
|
||||||
|
|
||||||
|
{{#is_analog}}
|
||||||
|
## Analog pins
|
||||||
|
|
||||||
|
| `ua`# | `analog`# | Description |
|
||||||
|
|--------------|------------------|--------------------|
|
||||||
|
{{#analog_pins}}
|
||||||
|
| {{ua_index}} | {{analog_index}} | {{&desc}} |
|
||||||
|
{{/analog_pins}}
|
||||||
|
{{/is_analog}}
|
||||||
|
|||||||
@@ -539,6 +539,15 @@ class Project:
|
|||||||
}
|
}
|
||||||
for i in range(8)
|
for i in range(8)
|
||||||
],
|
],
|
||||||
|
"analog_pins": [
|
||||||
|
{
|
||||||
|
"ua_index": str(i),
|
||||||
|
"analog_index": "?",
|
||||||
|
"desc": desc,
|
||||||
|
}
|
||||||
|
for i, desc in enumerate(self.info.pinout.ua)
|
||||||
|
],
|
||||||
|
"is_analog": bool(self.info.pinout.ua),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user