Changing pin outs on LiquidCrystal examples and adding parentheses to Servo code.
This commit is contained in:
parent
1342c837d4
commit
f1a7670808
|
@ -1,6 +1,6 @@
|
|||
#include <LiquidCrystal.h>
|
||||
|
||||
LiquidCrystal lcd(12, 11, 2, 7, 8, 9, 10);
|
||||
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
|
||||
|
||||
void setup()
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <LiquidCrystal.h>
|
||||
|
||||
LiquidCrystal lcd(12, 11, 2, 7, 8, 9, 10);
|
||||
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
|
||||
|
||||
void setup()
|
||||
{
|
||||
|
|
|
@ -69,12 +69,12 @@ uint8_t Servo::attach(int pinArg)
|
|||
|
||||
if (pin == 9) {
|
||||
attached9 = 1;
|
||||
TCCR1A = TCCR1A & ~_BV(COM1A0) | _BV(COM1A1);
|
||||
TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
|
||||
}
|
||||
|
||||
if (pin == 10) {
|
||||
attached10 = 1;
|
||||
TCCR1A = TCCR1A & ~_BV(COM1B0) | _BV(COM1B1);
|
||||
TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue