Приветствую Вас, Призрак | RSS
Воскресенье, 08.09.2024, 04:28
Главная » Файлы » Мои файлы

xx.10
[ Скачать с сервера (3.40 Mb) ] 30.08.2018, 22:19

тебе это не надо

Категория: Мои файлы | Добавил: Buffy
Просмотров: 604 | Загрузок: 63 | Комментарии: 3 | Рейтинг: 0.0/0
Всего комментариев: 3
3 llp  
0
https://www.ilovepdf.com/ru/pdf_to_jpg

2 lol  
0
https://docplayer.ru/54008722-Hyundai-solaris.html

1 lol  
0
bool _trgt1 = 0;
bool _trgt1I = 0;
bool _tim1I = 0;
bool _tim1O = 0;
unsigned long _tim1P = 0UL;
bool _bounseInputD8S = 0;
bool _bounseInputD8O = 0;
unsigned long _bounseInputD8P = 0UL;
void setup()
{
pinMode(8, INPUT);
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);

_bounseInputD8O = digitalRead(8);
}
void loop()
{
bool _bounceInputTmpD8 = (digitalRead (8));

if (_bounseInputD8S)
{
if (millis() >= (_bounseInputD8P + 40))
{_bounseInputD8O= _bounceInputTmpD8; _bounseInputD8S=0;}
}
else
{
if (_bounceInputTmpD8 != _bounseInputD8O )
{_bounseInputD8S=1; _bounseInputD8P = millis();}
}

//Плата:1
if (!(_bounseInputD8O))
{ if (_tim1I) { if (_isTimer(_tim1P, 7000)) {_tim1O = 1;}} else {_tim1I =1; _tim1P = millis();}} else {_tim1O = 0; _tim1I = 0;}
digitalWrite(2, _tim1O);
bool _tmp1 = !(_bounseInputD8O);
if (_tmp1) { if (! _trgt1I) _trgt1 = ! _trgt1; }
_trgt1I = _tmp1;
digitalWrite(4, _trgt1);

}
bool _isTimer(unsigned long startTime, unsigned long period )
{
unsigned long currentTime;
currentTime = millis();
if (currentTime>= startTime) {return (currentTime>=(startTime + period));} else {return (currentTime >=(4294967295-startTime+period));}
}

Имя *:
Email *:
Код *:
Copyright MyCorp © 2024 |