1
0
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:
David A. Mellis 2008-07-13 19:26:59 +00:00
parent 590a8251ab
commit 3c26693683
3 changed files with 4 additions and 4 deletions

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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;
}