CD4518BE CMOS Dual Up-Counters

used products:

1. Arduino UNO
2. CD4518BE

Arduino:

#define statePin 2 int state = 0; void setup() { pinMode(statePin, OUTPUT); } void loop() { if (state==0) { state = 1; } else { state = 0; } digitalWrite(statePin, state); delay(100); }