aboutsummaryrefslogtreecommitdiff
path: root/keyboards/oddforge/vea
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/oddforge/vea')
-rw-r--r--keyboards/oddforge/vea/keyboard.json (renamed from keyboards/oddforge/vea/info.json)7
-rw-r--r--keyboards/oddforge/vea/matrix.c4
-rw-r--r--keyboards/oddforge/vea/rules.mk11
-rw-r--r--keyboards/oddforge/vea/ws2812_custom.c8
4 files changed, 9 insertions, 21 deletions
diff --git a/keyboards/oddforge/vea/info.json b/keyboards/oddforge/vea/keyboard.json
index 9b55d0f2b5..6a6780ea53 100644
--- a/keyboards/oddforge/vea/info.json
+++ b/keyboards/oddforge/vea/keyboard.json
@@ -8,6 +8,13 @@
"pid": "0x4155",
"device_version": "1.0.0"
},
+ "features": {
+ "backlight": true,
+ "bootmagic": false,
+ "extrakey": true,
+ "mousekey": false,
+ "rgblight": true
+ },
"backlight": {
"pin": "D4"
},
diff --git a/keyboards/oddforge/vea/matrix.c b/keyboards/oddforge/vea/matrix.c
index 8b054ccbe0..36d4d3d353 100644
--- a/keyboards/oddforge/vea/matrix.c
+++ b/keyboards/oddforge/vea/matrix.c
@@ -15,9 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <string.h>
-#include <stdio.h>
-#include "quantum.h"
+#include "matrix.h"
#include "i2c_master.h"
#define RIGHT_HALF
diff --git a/keyboards/oddforge/vea/rules.mk b/keyboards/oddforge/vea/rules.mk
index b0c02543b1..bbfc7cbbf7 100644
--- a/keyboards/oddforge/vea/rules.mk
+++ b/keyboards/oddforge/vea/rules.mk
@@ -1,14 +1,3 @@
-# Build Options
-# change yes to no to disable
-#
-BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no # Mouse keys
-EXTRAKEY_ENABLE = yes # Audio control and System control
-CONSOLE_ENABLE = no # Console for debug
-COMMAND_ENABLE = no # Commands for debug and configuration
-BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
-
# custom matrix setup
CUSTOM_MATRIX = lite
SRC = matrix.c
diff --git a/keyboards/oddforge/vea/ws2812_custom.c b/keyboards/oddforge/vea/ws2812_custom.c
index f52c8d06a8..317f98130b 100644
--- a/keyboards/oddforge/vea/ws2812_custom.c
+++ b/keyboards/oddforge/vea/ws2812_custom.c
@@ -1,7 +1,7 @@
#include "ws2812.h"
#include "i2c_master.h"
-#ifdef RGBW
+#ifdef WS2812_RGBW
# error "RGBW not supported"
#endif
@@ -23,12 +23,6 @@ void ws2812_init(void) {
// Setleds for standard RGB
void ws2812_setleds(rgb_led_t *ledarray, uint16_t leds) {
- static bool s_init = false;
- if (!s_init) {
- ws2812_init();
- s_init = true;
- }
-
i2c_transmit(WS2812_I2C_ADDRESS, (uint8_t *)ledarray, sizeof(rgb_led_t) * (leds >> 1), WS2812_I2C_TIMEOUT);
i2c_transmit(WS2812_I2C_ADDRESS_RIGHT, (uint8_t *)ledarray+(sizeof(rgb_led_t) * (leds >> 1)), sizeof(rgb_led_t) * (leds - (leds >> 1)), WS2812_I2C_TIMEOUT);
}