mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-30 11:24:12 +01:00
Changing pin outs on LiquidCrystal examples and adding parentheses to Servo code.
This commit is contained in:
parent
590a8251ab
commit
3c26693683
@ -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
Block a user