use three different input channels for the accelerometer.
This commit is contained in:
parent
918616a1bf
commit
5631c92416
|
@ -57,8 +57,8 @@ adc_init(void)
|
|||
|
||||
/* P60: A0 */
|
||||
ADC12MCTL0 = INCH_0 | SREF_0;
|
||||
ADC12MCTL1 = INCH_0 | SREF_0;
|
||||
ADC12MCTL2 = INCH_0 | SREF_0;
|
||||
ADC12MCTL1 = INCH_1 | SREF_0;
|
||||
ADC12MCTL2 = INCH_2 | SREF_0;
|
||||
|
||||
/* P61: A1 */
|
||||
ADC12MCTL3 = ADC12MCTL4 = ADC12MCTL5 = INCH_1 | SREF_0;
|
||||
|
|
Loading…
Reference in a new issue