
I’ve pulled a couple of components over from the component catalog, here: from “Ports and Pins”, a “Digital Input
Pin” and a “Digital Output Pin”, and from the off-chip portion, a switch, resistor, and LED. Again, those off-chip
parts are purely aesthetic and have no more effect on the generated output than if you were to draw a picture of a
butterfly on the schematic.
To wire them up, either select the “Wire” tool on the left edge of the schematic window, or press the ‘w’ key.
Double click Pin_1, the input pin. You’ll get the component configuration window, where you can set all the various
parameters that define the part at build time.
From here, you can do an awful lot. For now, we’re going to do three things: rename the pin, change the drive
mode to “Resistive pull up” and clear the “HW connection” checkbox. “HW connection” provides a place to attach a
component internally; for example, a PWM output or an input to a counter. If you don’t want to attach something to
it, you have to disable this checkbox or the IDE will complain.
Rename the pin, too; the pin’s name is important, as it will dictate the name of functions that the IDE will generate
to provide a code interface to this object.
We’ll do the same thing for the output pin, except here we can leave the drive mode as-is.