FT245BM Read or Write to Digital I/O

I'm trying to either read or write the D0 to D7 I/O on the FT245BM and other than using the Serial In or Serial Out Nodes I'm clueless what's next. I can connect to the board but how to send or receive data is confusing me. I've tried sending bits via strings or buffer but neither have worked so far. Any help would be appreciated.

Thanks

That's a oldie from 2002.
For writing to the IO pins you need a other driver D2XX Driver then the default CDC driver.

Used this chip in the past with C#, but never with NR or javascript.
Chatgpt suggest that this should work, did not test this code:

const FTDI = require('ftdi');

FTDI.find(function (err, devices) {
    if (err) {
        console.error('Error finding devices:', err);
        return;
    }

    if (devices.length === 0) {
        console.log('No FTDI devices found');
        return;
    }

    const device = new FTDI.FtdiDevice(devices[0]);

    device.open(function (err) {
        if (err) {
            console.error('Open failed:', err);
            return;
        }

        console.log('Device opened');

        // Schrijf data
        const writeBuffer = Buffer.from("Hello FT245BM");

        device.write(writeBuffer, function (err) {
            if (err) {
                console.error('Write error:', err);
                return;
            }
            console.log('Data written');

            // Lees data
            device.read(64, function (err, data) {
                if (err) {
                    console.error('Read error:', err);
                    return;
                }

                console.log('Received:', data);

                device.close();
            });
        });
    });
});

I think it's wise to take something else like an Arduino if you want switch something with the IO lines.

Thanks for the response, I'm playing around with these boards more as a learning exercise. I've already setup a project with Arduino's and Firmata with pretty decent success. I hoped to use the Serial Nodes and try to figure out if I can just setup reads or writes from the board by reading or injecting a payload or topic.

Thanks again.