This shows you the differences between two versions of the page.
| cfnet:cfdo8r [2026/02/21 23:49] – created - external edit 127.0.0.1 | cfnet:cfdo8r [2026/02/22 00:06] (current) – admin | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| =====Wiring method===== | =====Wiring method===== | ||
| - | {{: | + | {{.: |
| Line 19: | Line 19: | ||
| CFDO-8R shares an address with CFDO-16N module. In other words, addresses already in use by CFDO-16N cannot be used. | CFDO-8R shares an address with CFDO-16N module. In other words, addresses already in use by CFDO-16N cannot be used. | ||
| - | {{ : | + | {{ .: |
| - | =====How to use the API===== | + | |
| - | 1. < | + | |
| - | 2. CFNET object creation: '' | + | [[index|CFNET]] |
| - | 3. Call the function(s): | ||
| - | \\ | ||
| - | ====-void digitalWrite(u8 address, u16 data) ==== | ||
| - | Turns all 8 output ports of the specified address module into On and Off states with 8bit data values. (8bit 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() { | ||
| - | | ||
| - | | ||
| - | } | ||
| - | | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||
| - | [[modularfaduino: | ||