Ультразвуковой дальномер HC-SR04

VK- Facebook - #include #include #include // Подключаем библиотеку iarduino_OLED. iarduino_OLED myOLED(0x3C); #define TRIGGER_PIN 12 #define ECHO_PIN 9 #define Buzer 5 Ultrasonic ultrasonic(TRIGGER_PIN, ECHO_PIN); int Bip, D, P; int cmMsec; unsigned long timmes; float dlina; extern uint8_t MediumNumbers[]; extern uint8_t MediumFont[]; const uint8_t myImageInRAM1[] = {10,8, B11000000,B11000000,B11000000,B11000000,B11000000,B11000000,B11000000,B11000000,B11000000, B11000000}; const uint8_t myImageInRAM2[] = {10,8, B11110000,B11110000,B11110000,B11110000,B11110000,B11110000,B11110000,B11110000,B11110000, B11110000}; const uint8_t myImageInRAM3[] = {10,8, B11111000,B11111000,B11111000,B11111000,B11111000,B11111000,B11111000,B
Back to Top