Hi All,
I am trying to generate an IR signal from my NanoPi NEO Air.
I have enabled IR using npi-config.
I have an AnalysIR "SendIR" board connected to GPIOA5 (WiringPi pin 18)
The following code produces output on the correct pin, but it is never the same transmission:
I have not found an overlay file for the NanoPi NEO Air for pwm-ir-tx.
loads the module, but doesn't create a device for me to use to use.
What is the correct way to transmit IR from this board?
How do I use pwm_ir_tx?
Is there an overlay for IR TX?
I am trying to generate an IR signal from my NanoPi NEO Air.
I have enabled IR using npi-config.
I have an AnalysIR "SendIR" board connected to GPIOA5 (WiringPi pin 18)
The following code produces output on the correct pin, but it is never the same transmission:
Code: Select all
#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int main (void) {
int pwmPin = 18;
int range = 1024;
int divisor = 512;
if (wiringPiSetup() == -1)
exit (-1);
piHiPri(99);
pinMode(pwmPin, PWM_OUTPUT);
pwmSetMode(PWM_MODE_MS);
pwmSetRange(range);
pwmSetClock(divisor);
pwmWrite(pwmPin, range);
delayMicroseconds(3470);
pwmWrite(pwmPin, 0);
return 0;
}
I have not found an overlay file for the NanoPi NEO Air for pwm-ir-tx.
Code: Select all
modprobe pwm_ir_rx
What is the correct way to transmit IR from this board?
How do I use pwm_ir_tx?
Is there an overlay for IR TX?