This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cfnet:cfdo16n [2026/02/21 23:49] – created - external edit 127.0.0.1 | cfnet:cfdo16n [2026/02/22 00:04] (current) – admin | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| [[https:// | [[https:// | ||
| + | |||
| =====Electrical specifications===== | =====Electrical specifications===== | ||
| * Output Ports: 16 | * Output Ports: 16 | ||
| Line 14: | Line 15: | ||
| =====Wiring method===== | =====Wiring method===== | ||
| - | {{: | + | {{.: |
| ===== Setting the module' | ===== Setting the module' | ||
| Line 22: | Line 23: | ||
| - | {{ : | + | {{ .: |
| - | + | ||
| - | =====How to use the API===== | + | |
| - | + | ||
| - | 1. < | + | |
| - | + | ||
| - | 2. CFNET object creation: '' | + | |
| - | + | ||
| - | 3. Call the function(s): | + | |
| - | \\ | + | |
| - | ====-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) | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | <code c> | + | |
| - | #include " | + | |
| - | CFNET cfnet; | + | |
| - | + | ||
| - | void setup() { | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | void loop() { | + | [[index|CFNET]] |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | | + | |
| - | } | + | |
| - | </ | + | |
| - | [[modularfaduino: | ||