Move USB_MAX_POWER_CONSUMPTION to data driven (#20648)

This commit is contained in:
Ryan
2023-05-01 17:37:12 +10:00
committed by GitHub
parent 12d42cedd2
commit 2944e93870
99 changed files with 90 additions and 226 deletions

View File

@@ -1,5 +0,0 @@
#pragma once
// The Teensy 2++ consumes about 60 mA of current at its full speed of 16 MHz as
// per https://www.pjrc.com/teensy/low_power.html
#define USB_MAX_POWER_CONSUMPTION 100

View File

@@ -4,7 +4,8 @@
"usb": {
"vid": "0xFEED",
"pid": "0x6060",
"device_version": "0.0.2"
"device_version": "0.0.2",
"max_power": 100
},
"matrix_pins": {
"cols": ["E7", "F0", "F7", "B1", "B3", "B0", "D5"],