feat(datasheet): add analog pins to project pdf

This commit is contained in:
htfab
2024-05-06 23:21:17 +03:00
committed by Uri Shaked
parent b840056e76
commit 2ad30b2e68
2 changed files with 19 additions and 0 deletions
+10
View File
@@ -13,3 +13,13 @@
{{#pins}}
| {{pin_index}} | {{&ui}} | {{&uo}} | {{&uio}} |
{{/pins}}
{{#is_analog}}
## Analog pins
| `ua`# | `analog`# | Description |
|--------------|------------------|--------------------|
{{#analog_pins}}
| {{ua_index}} | {{analog_index}} | {{&desc}} |
{{/analog_pins}}
{{/is_analog}}
+9
View File
@@ -539,6 +539,15 @@ class Project:
}
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),
}
)