Still struggling with this, let me start from the beginning and explain what im trying to do
When my Raspberry Pi arrives i intend to use it as a home security system incorporating ready made boards from maplins such as "infra-red beam" to use across the driveway and standard door/window sensors.
I would also like to add a lawn watering system again using ready made boards such as moisture and temperature sensors to make it a bit more hitec than just turning on the sprinkler system whether its already been raining or not.
At the moment im using Python for windows and just getting to grips with the commands ready for when my Raspberry Pi arrives, so need to be able to load whatever i have done on the windows based program and transfer to the Pi.
I have limited knowledge of programming but used to be great at getting my old spectrum to do what i wanted and have also used Dark Basic for windows.
Before i start diving in deeper with all the code to get information from/to the GPIO on the Pi to work with everything i attach to it, i want to emulate the state of the sensors being activated by a single key press so i can make sure the main loop of the program works.
Im stuck at this point lol and have only just started the project, on the spectrum it would be something like...
10 rem alarm system
20 if inkey$="a" then gosub 100
30 if inkey$="b"then gosub 200
40 goto 20
100 print" Infra-red beam broken"
200 print"window open"
So how can i achieve the above using python using least amount of code and without having to install other software?
P.S Just wait until i get to the point of coding the GPIO pins, i think i will be living on here