From dd13e5bfe73cc77e44e04b1d0f31ce961f55e2f8 Mon Sep 17 00:00:00 2001 From: dreamer Date: Fri, 20 Sep 2024 18:45:32 +0200 Subject: [PATCH] remove i2c setup, this will just use the default config of the SOM --- src/json2daisy/resources/component_defs.json | 4 ++-- src/json2daisy/resources/component_defs_patchsm.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/json2daisy/resources/component_defs.json b/src/json2daisy/resources/component_defs.json index ec7ada2..c63bb40 100644 --- a/src/json2daisy/resources/component_defs.json +++ b/src/json2daisy/resources/component_defs.json @@ -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", @@ -1389,4 +1389,4 @@ } ] } -} \ No newline at end of file +} diff --git a/src/json2daisy/resources/component_defs_patchsm.json b/src/json2daisy/resources/component_defs_patchsm.json index 1483c1d..6eab8e7 100644 --- a/src/json2daisy/resources/component_defs_patchsm.json +++ b/src/json2daisy/resources/component_defs_patchsm.json @@ -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", @@ -1155,4 +1155,4 @@ } ] } -} \ No newline at end of file +}