🌍 Public
Viewing a saved revision (read-only)
97b0d06ed45d41c6a6f242e6a14cc9c4
Smiley Face Part II
This example simulates a digital circuit on a printed circuit board, allowing users to toggle switches and observe the resulting LED states. Built with React and p5.js, it loads board and component images, then uses JavaScript logic to model OR and AND gates alongside D flip-flops connected in a ring counter configuration. A periodic clock signal triggers state updates, and mouse clicks on switch positions flip their binary outputs, which are visualized as illuminated LEDs on the board.
AI-generated descriptionSmiley face implementation with React.