Table of Contents

CFDO-16N

DC SINK output 16-point module, when turned on, the output is shorted to ground, and when turned off, it opens.

View at our online store.

Electrical specifications

Wiring method

Setting the module's address

How to use the API

1. <html>

#include "CFMEGA.h"

</html> library registration

2. CFNET object creation: CFNET object name CFNET cfnet;

3. Call the function(s): Object name.digitalWrite();cfnet.digitalWrite(0, 0xffff);

-void digitalWrite(u8 address, u16 data)

Turns the output 16 ports of the specified address module into On and Off states with 16bit data values. (16bit write)

-void digitalWrite(u8 address, u8 pin, u8 on_off)

Turns one port of the specified address module’s pin on or off. (1 bit write)

#include "CFMEGA.h"
CFNET cfnet;
 
void setup() {
 cfnet.digitalWrite(0, 0XFFFF); delay(1000);
 cfnet.digitalWrite(0, 0X0000); delay(1000);
}
 
void loop() {
 for(int i=0; i<16; i++){
 cfnet.digitalWrite(0, i, 1 );delay(100);
 }
 cfnet.digitalWrite(0, 0X0000); delay(1000);
}

Modular FADUINO