update keyboard and A04/devterm-a04-gearbox

This commit is contained in:
cuu 2021-12-29 19:03:50 +08:00
parent ed9ab854c5
commit 3a1edf8b70
2 changed files with 7 additions and 6 deletions

View File

@ -26,14 +26,14 @@ def gears():
little=(888000,) * 2,
use="browsing most websites with long battery life"),
gear(
little=(1080000,) * 3,
little=(1080000,) * 2,
use="most 2D games and emulators"),
gear(
little=(1488000,) * 4,
little=(1320000,) * 4,
use="playing videos and 3D games"),
#gear(
# little=(1800000,) * 4,
# use="max performance, max power (usage)"),
gear(
little=(1488000,) * 4,
use="performance-first tasks"),
]
#GPU_GOV_SIMPLE = "simple_ondemand"

View File

@ -32,7 +32,8 @@ static const int8_t WHEEL_DENOM = 2;
static int8_t wheelBuffer;
static float rateToVelocityCurve(float input) {
return std::pow(std::abs(input) / 50, 1.4);
//return std::pow(std::abs(input) / 50, 1.4);
return std::abs(input) / 30;
}
template<Axis AXIS, int8_t Direction >