Created
November 7, 2021 18:40
-
-
Save jilleb/280707e1fa78278482bb381e2a6b3ed0 to your computer and use it in GitHub Desktop.
VCPscript for ambient color palettes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
ConnectToEcuUDS('09') ; | |
IF ISCONNECTEDTOECU THEN | |
BEGIN | |
WRITELN('CONNECTED') ; | |
if dologin(31347) then writeln ('login OK') else writeln ('login nok') ; | |
WRITELN('Writing Ambient color list'); | |
if WriteDataByID(2600,'201923fffffffcff5d7dfc000ec434228c688ad8e8235b5429bdab3998f5') then writeln('adaptation 1 ok') else writeln('adaptation nok') ; | |
WRITELN('Writing LIN Ambient color list'); | |
if WriteDataByID(2879,'201923fffffffcff5d7dfc000ec434228c688ad8e8235b5429bdab3998f5') then writeln('adaptation 1 ok') else writeln('adaptation nok') ; | |
WRITELN('Writing Ambience lighting color list 2'); | |
if WriteDataByID(1414,'37294f277da73750dbf22020991919ffcba5e68f66c5613396341c632819ffc413f47a222f2aa0b732cc772b9df07cabd30b94edeff3c3a5b4946aa2') then writeln('adaptation 1 ok') else writeln('adaptation nok') ; | |
WRITELN('Writing Ambience lighting color list lin 2'); | |
if WriteDataByID(1415,'37294f277da73750dbf22020991919ffcba5e68f66c5613396341c632819ffc413f47a222f2aa0b732cc772b9df07cabd30b94edeff3c3a5b4946aa2') then writeln('adaptation 1 ok') else writeln('adaptation nok') ; | |
ConnectToEcuUDS('5F') ; | |
ECUReset; | |
END | |
ELSE | |
BEGIN | |
WRITELN('NOT CONNECTED') ; | |
END ; | |
CLOSECOMMUNICATION ; | |
END. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment