Magic. I have added that page as it is invaluable.
I had been searching on the wrong page! I now know.
Much appreciated.
@jturbett A question. I can see that Pin 7 is the lighting, however I can not see LED 3 and LED 4 from the control box. Pin 13 says LED but nothing else. Any clues?
@roryaronson Hi Rory. Any ideas on the pin assignments for the LED 3 and LED 4?
I actually don’t know which LEDs are connected to pins 3 or 4. I assume they are on the board itself, and the schematics might provide more information. However, what are you trying to accomplish? There is extra wiring for auxiliary peripherals, such as pins 10 and 12, which are pulse width modulated (PWM) power outputs. These can power LEDs or other devices like a 24V solenoid or even another Raspberry Pi using a 24V to USB cigarette lighter converter step-down. (It was a hack that worked for me.)
All I want to do is control the LEDs on the control box from LUA code.
Why? I am using the LEDs to provide feedback about the sequence / code execution process.
I would love to add a small LCD / eInk screen to provide execution feedback but that is out of my skill set at the moment.
These are unfortunately not exposed to Lua at the moment. Those LEDs are connected to the Raspberry Pi’s GPIO instead of the Farmduino’s. You can control them from the CONTROL PERIPHERAL command but not via a Lua helper.
You could probably use cs_eval() and paste in the celeryscript you see in a sequence step that sets the LED as you want. I have not tried this, but in theory it should work!
You could also rewire the LEDs from the Pi Adapter Board to Farmduino pins.