#!/usr/bin/env python
print("""
This example shows how you can monitor an analog input by attaching a function to its changed event.

You should see the analog value being printed out as it changes.

Try connecting up a rotary potentiometer or analog sensor to input one.

""")

from subprocess import call
import time



#call(["ls", "-l"])
call(["python", "camera_test.py"])
time.sleep(2)
call(["bash", "./processing/pixelsorting"])


 
 
 # Work the camera with a button! 
 #time.sleep(0.001) # do not use all the cpu power
 #pressed = 0
 #pressed = read_digital_pin()
 #if pressed:
    #when_pressed = time.time()
    #time_pressed = time.time() - when_pressed
    #while pressed:
      #if time_pressed > 4:
         #call("sudo halt -n") # turn of PI , when pressed for more than 4 seconds
         ##call("sudo shutdown -h now") # turn of PI , when pressed for more than 4 seconds  

@@ -335,16 +335,107 @@
  %22-l%22%5D)%0A
+# TODO Python module anschauen, so dass man nicht aus der bash neue scripts ausf%C3%BChren muss%0A
 call(%5B%22p

Comment TODO