Home > OS >  Raspberry pie command-line gpio export 17 out of question
Raspberry pie command-line gpio export 17 out of question

Time:11-11

Found on VS2017 cross-platform raspberries pie program development template flicker (Raspberry)

In the project properties page -- "generates events -" remote generated after the event - "command line
Gpio export out of 17

What is the command line?

After the success of the program on the raspberry pie compilation, every time after the restart raspberries pie, need to be in the Linux command line input gpio 17 out, the export program can run normally, otherwise you won't run,

How can you don't have to enter this command every time can let the program run normally?

Please answer, thank you!


CodePudding user response:

This command is set gpio17 value of output (out) the GPIO default state can be input, so by default the light will not shine

CodePudding user response:

Can put this command in the program code, if is the c language can be directly call system function to perform this command
  • Related