feat: "layout" section in shuttle_index

contains information about the type each each mux (analog / digital)
This commit is contained in:
Uri Shaked
2024-03-21 23:36:50 +02:00
parent a97e6b03b6
commit e3fac0ab40
2 changed files with 34 additions and 4 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
from typing import List, NotRequired, TypedDict
from typing import List, Literal, NotRequired, TypedDict
class ShuttleIndexProject(TypedDict):
@@ -12,6 +12,10 @@ class ShuttleIndexProject(TypedDict):
analog_pins: NotRequired[List[int]]
class ShuttleIndexLayout(TypedDict):
muxes: List[List[Literal["analog", "digital"]]]
class ShuttleIndex(TypedDict):
"""TypedDict for Tiny Tapeout's shuttle_index.json file."""
@@ -20,4 +24,5 @@ class ShuttleIndex(TypedDict):
commit: str
commit_date: int
version: int
layout: ShuttleIndexLayout
projects: List[ShuttleIndexProject]