mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat: "layout" section in shuttle_index
contains information about the type each each mux (analog / digital)
This commit is contained in:
+6
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user