This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sketchs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
#define PIRpin 22 //датчик движения | |
#define buzzer 23 //зуммер | |
#define dir_left 4 //левый мотор | |
#define speed_left 5 //левый мотор, PWM | |
#define speed_right 6 //правый мотор, PWM | |
#define dir_right 7 //правый мотор | |
#define min_distance 40 //минимальная дистанция для автоповорота, см | |
#define trigPin 3 //HC-SR04 Trig's | |
#define echoPin_left 2 //левый HC-SR04 Echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ps2key_int_pin 3 | |
#define ps2key_data_pin 4 | |
#define pin_BL 5 | |
#define pin_SD 6 | |
#define exe_ok 0 | |
#define exe_end 1 | |
#define stack_overflow 2 | |
#define division_by_zero 3 | |
#define end_of_file 4 | |
#define file_not_exist 5 |
NewerOlder