Hi,Antoine
The Pedro solution is to add a supplementary program in VI,but may not be able to solve the digital IO initialization problem.
Mr.nebramal if his procedure to the setup() function,may be better.
I tried and tested in Arduino's setup() digital IO initialization function,can solve the problem of.
Here to thank Mr.Nathan_B. gave me inspiration,also thank you for your information and consent.
Regards
Hongguang_Sun