Part Number: MSP432P401R Hi Devs, I am working on an IR library but not having much success (not oscilloscope to help me either). My approach is just to translate a working Arduino library, however, I think I have the timings wrong. The 'time' variable needs to be in uS (microseconds). With bit marks as 560uS. The working code: Void sendMark(UInt time) { PWM_start(pwm0); if(time > 0) Task_sleep(time * (1 / Clock_tickPeriod)); } Void sendSpace(UInt time) { PWM_stop(pwm0); if(time > 0) Task_sleep(time * (1 / Clock_tickPeriod)); } So would Task_sleep be in microseconds of variable time? Thanks
↧