Scratch

【DEMO1】Control the LEDs with Pi_Scratch on Banana Pro

3 1951
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 Pi_Scratch.py,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:
1.png
the result:
1 (2).png



g4-g17-InputButton-demo.zip (39.42 KB, Downloads: 7)

Cool stuff! Thx!

ponor  
Note: The author has been banned or deleted.

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

Points Rules