Skip to content

Commit

Permalink
tweaks to tiltbuzz.c
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardChambers committed Jan 6, 2018
1 parent ece97dc commit 643b5cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions project11/tiltbuzz_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@

int main (int argc, char *argv[])
{
// BUZZPIN is wiringPi Pin #1 or physical pin #12 or GPIO #18
// BUZZPIN is wiringPi Pin #0 or physical pin #11 or GPIO #17
int BUZZPIN = 0;
int LCDAddrs = 0x27; // may be 0x37 instead.

if (wiringPiSetup() == -1) {
printf ("Setup wiringPi Failed!\n");
return -1;
}

lcd1602Open (0x27);
lcd1602Open (LCDAddrs);

pinSetupWrite (BUZZPIN, LOW);

Expand Down

0 comments on commit 643b5cd

Please sign in to comment.