We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b65a4a3 + 59df0df commit bdb57d9Copy full SHA for bdb57d9
ldc500/ldc500.ino
@@ -3,7 +3,7 @@
3
4
Main Functions:
5
* ENABLE/DISABLE Laser -> Pin 13 + LED
6
- * SET Laser Current -> Pin 11
+ * SET Laser Current -> Pin 11 (Changed to 31 kHz
7
* GET Laser Current -> A0
8
LDC205C -> k=50mA/V
9
@@ -36,6 +36,10 @@ boolean stringComplete = false; // whether the string is complete
36
void setup() {
37
pinMode(laserREM, OUTPUT);
38
pinMode(laserMod, OUTPUT);
39
+ // Change PWM Frequency for Timer2.
40
+ // Copied the relevant part from here:
41
+ // http://playground.arduino.cc/Code/PwmFrequency
42
+ TCCR2B = TCCR2B & 0b11111000 | 0x01;
43
Serial.begin(115200);
44
// reserve 200 bytes for the inputString:
45
inputString.reserve(200);
0 commit comments