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:

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);

  pinMode(pwmPin, PWM_OUTPUT);
  pwmWrite(pwmPin, range);
  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
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?