Skip to content

Commit

Permalink
remove i2c setup, this will just use the default config of the SOM
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Sep 20, 2024
1 parent f77c6b4 commit dd13e5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/json2daisy/resources/component_defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
]
},
"Mpr121": {
"map_init": "daisy::Mpr121I2CTransport::Config {name}_config;\n {name}_config.periph = {periph};\n {name}_config.speed = {speed};\n {name}_config.scl = som.GetPin({pin_scl});\n {name}_config.sda = som.GetPin({pin_sda});\n {name}_config.dev_addr = {address};\n daisy::Mpr121I2C::Config {name}_main_conf;\n {name}_main_conf.transport_config = {name}_config;\n {name}_main_conf.touch_threshold = {touch_threshold};\n {name}_main_conf.release_threshold = {release_threshold};\n {name}.Init({name}_main_conf);",
"map_init": "daisy::Mpr121I2CTransport::Config {name}_config;\n {name}_config.periph = {periph};\n {name}_config.speed = {speed};\n {name}_config.dev_addr = {address};\n daisy::Mpr121I2C::Config {name}_main_conf;\n {name}_main_conf.transport_config = {name}_config;\n {name}_main_conf.touch_threshold = {touch_threshold};\n {name}_main_conf.release_threshold = {release_threshold};\n {name}.Init({name}_main_conf);",
"typename": "daisy::Mpr121I2C",
"direction": "in",
"pin": "scl,sda",
Expand Down Expand Up @@ -1389,4 +1389,4 @@
}
]
}
}
}
4 changes: 2 additions & 2 deletions src/json2daisy/resources/component_defs_patchsm.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
]
},
"Mpr121": {
"map_init": "daisy::Mpr121I2CTransport::Config {name}_config;\n {name}_config.periph = {periph};\n {name}_config.speed = {speed};\n {name}_config.scl = som.GetPin({pin_scl});\n {name}_config.sda = som.GetPin({pin_sda});\n {name}_config.dev_addr = {address};\n daisy::Mpr121I2C::Config {name}_main_conf;\n {name}_main_conf.transport_config = {name}_config;\n {name}_main_conf.touch_threshold = {touch_threshold};\n {name}_main_conf.release_threshold = {release_threshold};\n {name}.Init({name}_main_conf);",
"map_init": "daisy::Mpr121I2CTransport::Config {name}_config;\n {name}_config.periph = {periph};\n {name}_config.speed = {speed};\n {name}_config.dev_addr = {address};\n daisy::Mpr121I2C::Config {name}_main_conf;\n {name}_main_conf.transport_config = {name}_config;\n {name}_main_conf.touch_threshold = {touch_threshold};\n {name}_main_conf.release_threshold = {release_threshold};\n {name}.Init({name}_main_conf);",
"typename": "daisy::Mpr121I2C",
"direction": "in",
"pin": "scl,sda",
Expand Down Expand Up @@ -1155,4 +1155,4 @@
}
]
}
}
}

0 comments on commit dd13e5b

Please sign in to comment.