ShaneAngle
I was wondering where I change the i/o mapping for my pi. http://www.waveshare.com/wiki/RPi_Relay_Board_(B)
I am using this relay board and would like to simply swap some inputs to outputs.
Quote 0 0
thiagoralves
Check the file /webserver/core/hardware_layers/raspberrypi.cpp. This file is the driver responsible to control the Pi GPIOs. To change the mapping, all you have to do is change the #defines with the number of inputs and outputs, and then change the input and output vectors accordingly. Once your changes are made, you will have to go to the Hardware section on the OpenPLC Runtime and reload the Raspberry Pi driver for your changes to take effect.
Quote 0 0