CD4518BE CMOS Dual Up-Counters

Used Products:

1. Arduino UNO
2. CD4518BE

Code:

#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); }