【DEMO1】Control the LEDs with Pi_Scratch on Banana Pro

3 3275
Edited by A.Einstein at Sun Jan 25, 2015 20:00

Configuration Software Environment

A.We should open the file of g4-g17-InputButton-demo after enter the Scratch.
B.We open the LXTerminal and enter the corresponding file directory of,then input  
  sudo python to execute it.
C.See to the Scratch, click the start and press the space,we can see that LED-7 is in dark when we press the switch-4.If we don”t press the switch-4,the LED-7 is bright.
   Input:  GPIO-17~Pin11~light11=1;
   Output:GPIO-4~ Pin7 ~light7  off;
   Effect:the LED-7 darken.
Running Interface:
the result:
1 (2).png (39.42 KB, Downloads: 7)

Cool stuff! Thx!

You can download the baixar gb whatsapp apkxyz  for easy join

You have to log in before you can reply Login | Sign Up

Points Rules