Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int Ap = 7;
- const int Ae = 5;
- const int Bp = 4;
- const int Be = 6;
- const int L1 = 2;
- const int L2 = 3;
- void setup() {
- // put your setup code here, to run once:
- pinMode(Ap, OUTPUT);
- pinMode(Ae, OUTPUT);
- pinMode(Bp, OUTPUT);
- pinMode(Be, OUTPUT);
- Serial.begin(9600);
- delay(3000);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- digitalWrite(Ap, false);
- digitalWrite(Bp, true);
- analogWrite(Ae, 150);
- analogWrite(Be, 105);
- /* if(digitalRead(L1)==LOW){
- Serial.println("I SEE");
- }
- else if(digitalRead(L2)==LOW){
- Serial.println("I SEE TOO");
- }
- else Serial.println("");*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement