Home

Kitt

This is a stepping stone project.
I'm learning how to control the LEDs for my next project.
It's a very simple circuit. It involves wiring each of the I/O pins to an LED through a 1K resistor. Except for pin 15. That pin is pulled high using a 1K resistor, and pulled low when you press the push button.

The breadboard was just perfect for this project. There were no extra holes along the width of the board. I used all 47 holes!
'
' Press button 15 to simulate Knight Rider's Kitt talking
'
' Hari Wiguna, June 2000
'
delay con 6 'miliseconds
i var byte
input 15
start:
  if IN15 = 1 then start
'=== Explode ===
for i = 0 to 7
  low 7-i
  low 7+i
  pause delay/2 'Explode FAST
next
'=== Implode ===
for i = 0 to 7
  high i
  high 14-i
  pause delay*3 'Implode slow...
next
GOTO start

Home