peristaltic-pump recipe: make inputs a Table, not an Array
`[inputs]` is now a TOML Table (a key/value store). Each input is represented in the `[inputs]` table by a key/value pair. The key is a unique name (which also maps to the recipe file for building that input thing). The value is another table describing that input, that we'll represent with an Input struct.
This commit is contained in:
parent
aca1e0715f
commit
2f65e08afc
1 changed files with 4 additions and 4 deletions
|
|
@ -1,22 +1,22 @@
|
|||
[[inputs]]
|
||||
[inputs]
|
||||
pump_housing_front_with_stepper = {version = 0.1, quantity=1}
|
||||
bearing_roller = {version=0.1, quantity=1}
|
||||
pump_housing_rear_with_stepper = {version=0.1, quantity=1}
|
||||
tube_support = {version=0.1, quantity=1}
|
||||
|
||||
[[inputs.silicone_tubing]]
|
||||
[inputs.silicone_tubing]
|
||||
type = "silicone tubing, 6mm OD, 4mm ID"
|
||||
quantity = "1 meter"
|
||||
comment = "PVC tube isn't flexible enough. Adjust quantity to suit your application."
|
||||
|
||||
[[inputs.m4_25_bhcs]]
|
||||
[inputs.m4_25_bhcs]
|
||||
name = "m4_25_bhcs"
|
||||
type = "M4x25 BHCS"
|
||||
quantity = 4
|
||||
comment = """BHCS is preferred over SHCS so the screw heads sit recessed
|
||||
below the surface of the pump body."""
|
||||
|
||||
[[inputs.m4_nuts]]
|
||||
[inputs.m4_nuts]
|
||||
type = "M4 nuts"
|
||||
quantity = 4
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue