int button = 2;
int flag;
int readbutton;
void setup(){}
void loop(){
readbutton = digitalRead(button);
if(readbutton>flag){
//your code here
flag=readbutton;
}
if(readbutton==0){
flag=0;
}
Code Example |
---|
:: opencv(4.5.1) c:usersappveyorappdatalocal emp1pip-req-build-kh7iq4w7opencvmodulesimgprocsrc esize.cpp:4051: error: (-215:assertion failed) !ssize.empty() in function |
Cpp :: |
:: |
:: |
:: how to find product of a given numbers in c++ |
:: |
:: DS1302 |
:: |
:: |
:: |
Cpp :: |
Cpp :: |
:: |
:: |
Cpp :: enum in c++ |
Cpp :: |
:: |
:: substring function in c++ |
:: |
:: recuva recovery software for pc with crack |
Cpp :: |
:: |
:: |
Cpp :: |
:: |
Cpp :: argument to number C++ |
:: |
:: |
:: |
Cpp :: |