This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Knight Rider led simulation for Arduino | |
By Antonio Perez <[email protected]> | |
Public Domain | |
*/ | |
const int analogInPin = A0; | |
const int ledPins[] = {3, 5, 6, 9, 10, 11}; | |
const int pinCount = 6; | |
const int brightAmount = (255 / (pinCount / 3)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Show analog input value using a LCD. | |
Turn on and off the backlight with a button. | |
By Antonio Perez <[email protected]> | |
Public Domain | |
*/ | |
// include the library code: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ValidateSpanishID. Returns the type of document and checks its validity. | |
* | |
* Usage: | |
* ValidateSpanishID( str ); | |
* | |
* > ValidateSpanishID( '12345678Z' ); | |
* // { type: 'dni', valid: true } | |
* | |
* > ValidateSpanishID( 'B83375575' ); |