I2S for LPC1768 with typo patch for I2S rx clock pin setup in I2S.cpp line 492 - used for microphone demo

Dependents:   i2s_microphone LPC1768_MicrophoneSensing Receiver

Fork of I2S by Giles Barton-Owen

Fixes I2S rx clock typo in original I2S library code - see line 494 The two I2S RX clock pin options were swapped in the pin setup code. See https://os.mbed.com/users/4180_1/notebook/using-an-i2s-microphone---sph0645lm4h/

Revision:
1:58bbfaf58a7b
Parent:
0:455d5826751b
--- a/I2S.cpp	Wed Sep 19 10:53:33 2012 +0000
+++ b/I2S.cpp	Fri Jan 26 00:52:02 2018 +0000
@@ -490,7 +490,12 @@
             }
 
             if (clk_d == true) {
-                if (_clk == p15)
+ 
+ //
+ //I2S library patch 1/25/18 for typo to get input clock to work!
+ //patch "==" was changed to "!=" in if cond below to get I2S rx clock on correct pin
+ //
+                if (_clk != p15)
                     LPC_PINCON->PINSEL0 |= (val1 << 8);
                 else
                     LPC_PINCON->PINSEL1 |= (val2 << 14);