arduino_light_game
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Light chases from side to side, stop the light when it is in the middle and win. Speed picks up with each round. My first crack at an arduino, lots of fun, the kids enjoyed it too.
Arduino Light Game
=============

This is a simple arduino light game that was actually my first forray into the arduino, it was a blast.
I kind of just rushed through it, not much in the way of commenting, a few hard coded values, you get the idea.
I didnt anticipate sharing it when I wrote it so excuse the clutter.  Feel free to play with it.


Setup
-----------

Place LED's on pins 9-13 (see the blinking LED example for examples on hooking up an LED)
On pin 7 hook up a button.
Copy and paste the code and send it up to the arduino.


Usage
-----

The lights will flash from left to right very slowly. (ala the knight rider car)  When the light reaches the middle (pin11) press the button.
If you stop in the middle the light will flash and the speed of the light will increase. See how many times in a row
you can catch the middle LED.  If you miss the light will flash and the speed will be reset.


Contribution
-------------
	
Feel free to send over any pull requests for enhancements to the program.  Perhaps someday I will tie in an LCD to display your progress.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。