diff --git a/keyboards/handwired/onekey/sn32f240b/config.h b/keyboards/handwired/onekey/sn32f240b/config.h new file mode 100644 index 000000000000..01b6a1141524 --- /dev/null +++ b/keyboards/handwired/onekey/sn32f240b/config.h @@ -0,0 +1,23 @@ +/* Copyright 2024 Dimitris Mantzouranis + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#define I2C_DRIVER I2CD0 +#define I2C1_SCL_PIN A6 +#define I2C1_SDA_PIN A7 +#define I2C1_OPMODE OPMODE_I2C +#define I2C1_CLOCK_SPEED 400000 \ No newline at end of file diff --git a/keyboards/handwired/onekey/sn32f240b/mcuconf.h b/keyboards/handwired/onekey/sn32f240b/mcuconf.h new file mode 100644 index 000000000000..5d79da961a36 --- /dev/null +++ b/keyboards/handwired/onekey/sn32f240b/mcuconf.h @@ -0,0 +1,19 @@ +/* Copyright 2024 Dimitris Mantzouranis + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#pragma once + +#define SN32_I2C_USE_I2C0 TRUE +#include_next diff --git a/keyboards/handwired/onekey/sn32f260/config.h b/keyboards/handwired/onekey/sn32f260/config.h new file mode 100644 index 000000000000..dd01a87b6c9f --- /dev/null +++ b/keyboards/handwired/onekey/sn32f260/config.h @@ -0,0 +1,23 @@ +/* Copyright 2024 Dimitris Mantzouranis + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#define I2C_DRIVER I2CD0 +#define I2C1_SCL_PIN A4 +#define I2C1_SDA_PIN A5 +#define I2C1_OPMODE OPMODE_I2C +#define I2C1_CLOCK_SPEED 400000 \ No newline at end of file diff --git a/keyboards/handwired/onekey/sn32f260/mcuconf.h b/keyboards/handwired/onekey/sn32f260/mcuconf.h new file mode 100644 index 000000000000..5d79da961a36 --- /dev/null +++ b/keyboards/handwired/onekey/sn32f260/mcuconf.h @@ -0,0 +1,19 @@ +/* Copyright 2024 Dimitris Mantzouranis + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#pragma once + +#define SN32_I2C_USE_I2C0 TRUE +#include_next