Dear Paul,
Thank you so much for you quick response and feedback, absolutely amazing
! Currently looking into TeensyDMX.
As I am not insanely versed when it comes to programming, but I understand that the following should work:
1. I can use the schematics that I currently have: Using the MAX487 pin 4 connected to pin 10/TX2 on the Teensy ( I attached schematics of this)
2. Use the following code to turn channel 4 to 255 to (I do not have the DMX at home, but it would be great to see if it could work before I start debugging on site):
Code:
#include <TeensyDMX.h>
namespace teensydmx = ::qindesign::teensydmx;
// Create the DMX sender on Serial2 - Pin 10.
teensydmx::Sender dmxTx{Serial2};
void setup() {
dmxTx.begin();
// Setting channel 4 to 255
dmxTx.set(4, 255);
}
Because that would be even simpler than using SimpleDMX.
The example code also includes the following about an enabling pin, but I cannot really figure out if this is necessary in my case (e.g. can I use this or should I reserve it if I use TeensyDMX):
Code:
// Pin for enabling or disabling the transmitter.
constexpr uint8_t kTXPin = 17;
void setup() {
// Set the pin that enables the transmitter
pinMode(kTXPin, OUTPUT);
digitalWriteFast(kTXPin, HIGH);
}
Apologies for what is perhaps a stupid question, but feedback is much appreciated (have to built some confidence in this, hehe )
.