mbed library for STMicroelectronics' X-NUCLEO-IKA01A1 expansion board.
Dependents: HelloWorld_IKA01A1
Fork of X_NUCLEO_IKA01A1 by
Library for STMicroelectronics' X-NUCLEO-IKA01A1 multifunctional expansion board based on operational amplifiers.
Diff: Components/tsv734/tsv734_class.h
- Revision:
- 4:5118c5384fdd
- Parent:
- 3:997327f69b10
- Child:
- 5:971fe0335af2
--- a/Components/tsv734/tsv734_class.h Wed Mar 16 09:20:02 2016 +0000 +++ b/Components/tsv734/tsv734_class.h Thu Mar 17 07:55:41 2016 +0000 @@ -138,18 +138,18 @@ return (int) TSV734_ReadID((uint8_t *) id); } - virtual int Configure(unsigned int period_ms) + virtual int Configure(unsigned int period_us) { - pwmPinName = A1; + pwmPinName = D3; PwmOut ledOut(pwmPinName); - period = period_ms; + period = period_us; ledOut.period_ms(period); } virtual int SetDutyCycle(float dc) { PwmOut ledOut(pwmPinName); - ledOut.pulsewidth_ms((period*dc)/100); + ledOut.pulsewidth_us((period*dc)/100); return (int) dc; }