Design the Circuit, Then Write the Code