ESP8266 and Coinslot
Posted: Tue Jul 14, 2020 4:01 am
Gooday! I may ask to everyone, if it is possible to reject a coin from a Universal Coin Acceptor using a esp8266? for example , i need to push first a button before a coinslot accept a coin? can i see a sample code.
here is my code;
void ICACHE_RAM_ATTR CoinAccept(){
CoinCount++;
StartTime=millis (); //start of time every coin drop
digitalWrite(LED_BUILTIN,LOW);
}
void setup() {
attachInterrupt(D5, CoinAccept, RISING);
}
here is my code;
void ICACHE_RAM_ATTR CoinAccept(){
CoinCount++;
StartTime=millis (); //start of time every coin drop
digitalWrite(LED_BUILTIN,LOW);
}
void setup() {
attachInterrupt(D5, CoinAccept, RISING);
}