This file contains hidden or 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
| #define POT_PIN 1 | |
| #define DC_MOTOR_PIN 3 | |
| #define BUTTON_PIN 2 | |
| #define LED_PIN 13 | |
| int speed = 0; | |
| int minSpeed = 60; | |
| int maxSpeed = 255; | |
| int val = 0; | |
| int prevButtonState = 0; |
This file contains hidden or 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
| 0x25d5187ff08a8351b831959bdaf72218c888cb5a |
This file contains hidden or 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
| /** | |
| * | |
| * This will deep check two variables including objects | |
| * Note: equals(NaN, NaN) uses js default behaviour: false | |
| * | |
| * equals(1, 1) --> true | |
| * equals(1, 2) --> false | |
| * | |
| * equals({a: 1}, {a: 1}) --> true |
This file contains hidden or 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
| /** | |
| * | |
| * This will deep check two variables including objects | |
| * It works in IE9+ | |
| * Note: equals(NaN, NaN) uses js default behaviour: false | |
| * | |
| * equals(1, 1) --> true | |
| * equals(1, 2) --> false | |
| * | |
| * equals({a: 1}, {a: 1}) --> true |