Oct 5th, 2015
3、Extract Traffic Spirit: Extract Spirit to file folder, Password: ipts123,If not decompression software installed,pls download it. 4、Add in the trusted list: Add Spirit in the trusted list of security software,the list is in the setting UI. Here's a basic outline of how the hack functions: An application uses inpout32.dll to turn on a specific pin of the parallel port. This current in turn causes the line driver chip to allow 5 VDC to flow through the SPDT relay. The relay turns on and the light comes on. There are three SPDT relays, one for each light.
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- //Arduino 4fun project, simple 3 way traffic light with timer using 7 segment display
- int timer;
- int greenA = 14; // 'hack' digital input using analog input A0
- int redA = 15; // 'hack' digital input using analog input A1
- int greenB = 16; // 'hack' digital input using analog input A2
- int redB = 17; // 'hack' digital input using analog input A3
- int greenC = 18; // 'hack' digital input using analog input A4
- int redC = 19; // 'hack' digital input using analog input A5
- void setup()
- timer = 9;
- {
- }
- pinMode(greenA, OUTPUT);
- pinMode(greenB, OUTPUT);
- pinMode(greenC, OUTPUT);
- digitalWrite(greenB, LOW);
- digitalWrite(redA, LOW);
- digitalWrite(redC, HIGH);
- {
- {
- delay(1000);
- if(i 0)
- if(digitalRead(greenA) HIGH)
- digitalWrite(greenA, LOW);
- digitalWrite(greenC, LOW);
- digitalWrite(redB, LOW);
- }
- {
- digitalWrite(greenB, LOW);
- digitalWrite(redA, HIGH);
- digitalWrite(redC, LOW);
- else
- digitalWrite(greenA, HIGH);
- digitalWrite(greenC, LOW);
- digitalWrite(redB, HIGH);
- }
- }
- {
- {
- {
- }
- digitalWrite(pinNumb[6],LOW);
- else if(val 1)
- for(int i = 0; i < 7 ; i++)
- digitalWrite(pinNumb[i],LOW);
- digitalWrite(pinNumb[2],HIGH);
- else if(val 2)
- for(int i = 0; i < 7 ; i++)
- digitalWrite(pinNumb[i],LOW);
- digitalWrite(pinNumb[1],HIGH);
- digitalWrite(pinNumb[4],HIGH);
- }
- {
- {
- }
- digitalWrite(pinNumb[0],HIGH);
- digitalWrite(pinNumb[6],HIGH);
- digitalWrite(pinNumb[3],HIGH);
- else if(val 4)
- for(int i = 0; i < 7 ; i++)
- digitalWrite(pinNumb[i],LOW);
- digitalWrite(pinNumb[2],HIGH);
- digitalWrite(pinNumb[6],HIGH);
- else if(val 5)
- for(int i = 0; i < 7 ; i++)
- digitalWrite(pinNumb[i],LOW);
- digitalWrite(pinNumb[2],HIGH);
- digitalWrite(pinNumb[5],HIGH);
- }
- {
- {
- }
- digitalWrite(pinNumb[0],HIGH);
- digitalWrite(pinNumb[3],HIGH);
- digitalWrite(pinNumb[5],HIGH);
- }
- {
- {
- }
- digitalWrite(pinNumb[0],HIGH);
- digitalWrite(pinNumb[2],HIGH);
- else if(val 8)
- for(int i = 0; i < 7 ; i++)
- digitalWrite(pinNumb[i],HIGH);
- }
- {
- {
- }
- digitalWrite(pinNumb[0],HIGH);
- digitalWrite(pinNumb[2],HIGH);
- digitalWrite(pinNumb[5],HIGH);
- digitalWrite(pinNumb[7],HIGH);
- }
- void turnOff()
- for(int i = 0; i < 7 ; i++)
- digitalWrite(pinNumb[i],LOW);
- }
RAW Paste Data