This commit is contained in:
rusefi 2021-11-08 21:29:09 -05:00
parent 39fb7fddfd
commit a7698a290f
1 changed files with 10 additions and 3 deletions

View File

@ -851,6 +851,8 @@ void proteusLuaDemo(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
}; };
engineConfiguration->luaOutputPins[0] = GPIOD_12; engineConfiguration->luaOutputPins[0] = GPIOD_12;
engineConfiguration->luaOutputPins[1] = GPIOD_10;
engineConfiguration->luaOutputPins[2] = GPIOD_11;
copyArray(CONFIG(scriptCurve3Bins), defaultBiasBins); copyArray(CONFIG(scriptCurve3Bins), defaultBiasBins);
copyArray(CONFIG(scriptCurve3), defaultBiasValues); copyArray(CONFIG(scriptCurve3), defaultBiasValues);
@ -861,9 +863,14 @@ void proteusLuaDemo(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
// ETB disable PD11 // ETB disable PD11
auto script = R"( auto script = R"(
function testFunc() startPwm(0, 800, 0.3)
return 5.5 -- direction
end startPwm(1, 80, 1.0)
-- disable
startPwm(2, 80, 0.0)
function onTick()
end
)"; )";
#endif #endif
} }