Alright, you 'orrible dissenting lot!
Still warm in the knowledge that our circuit is working, it's time to complete it!
First of all, we need some...
user input
By that, do I mean you all get to have you two bobs' worth

Certainly not. I mean we need a way for us to do stuff - like set the time, set the brightness, and order pizza.
Yes, we need a button! Or, more appropriately, a push-switch.
Switches are simple, right? Push to close a circuit. If you intuitively wanted to add a switch to our project, most people would probably try to do something like this:
But that ain't gonna work! In this case, what happens when the switch is pushed is that the MCU sees 5V. That's good... 5V is "1". But when the switch is open, the MCU doesn't see a "0", or 0V. Instead it sees "nothing" - neither 5V or 0V... the input is floating between the two, and could be either a "1" or a " 0 ".
That's not much good, is it? Fortunately we can fix it with a bit of ingenuity. Like so:
There. Now, when the switch is *open*, the chip sees 5V, or "1". When the switch is closed, current flows down to ground, and the MCU will see 0V. The resistor is fairly large - say, 10K, to ensure that not much current flows, but it is still small enough for the MCU to clearly see 0V.
There! Done! That's our switch.
Here it is incorporated into our circuit:
Right, now we need something else..... we need....
A display
Yup, no use having a button if we have no indication what it does. So here's where a nice, swanky LCD display comes in.
Picbasic.. and MikroBasic have built-in support for "intelligent" LCD displays based on or compatible with the Hitachi HD44780. Sounds complicated? Well, I'll admit, they do need a few wires to wire them up.... but controlling them is a breeeeeze.
Here are some standard LCDs I have in my rather dull collection:
They come with a varying number of connection pins, but the first 14 are always the same:
Now, if you're anything like me the first time I saw that, you'll be thinking ....
FOURTEEN connections!!!!!!!! You're kidding, right?
Well, no... I'm not. The good news is, we don't have to use all of them. The first three are just power settings (a potentiometer is strung between +5V and ground, with the variying resistance going to the contrast pin, to allow us to fine-tune contrast). The MCU knows what to do with RS and E, and because we're not using RW, we just tie it to ground.
What's more we don't need to use all eight data pins. Our MCU is Sooooo clever, that it only needs to use 4. A bit like riding a bike without holding the handlebars. Except safer. So, we only use D4 ~ D7, and leave the others unconnected.
See, only SIX connections to our MCU now..... not too bad.
For more infor on LCD displays and PIC microcontrollers, see
this
Here's our trusty old circuit diagram, with our LCD display in place:
