void ConfigRegister (uint8_t Addrs,uint8_t Register,uint8_t Config)
{
Wire.beginTransmission(Addrs); // Choose Addrs of mcp 23018
Wire.write(Register); // choose Register ex : iocon
Wire.write(Config); // Choose Configu Register ex : 0x00 for incative
Wire.endTransmission();
}
void ...
Search found 3 matches
- Fri Dec 03, 2021 5:34 pm
- Forum: General discussion
- Topic: nucleo 32-l432kc with mcp23018 Problème IODIR
- Replies: 2
- Views: 2488
- Fri Dec 03, 2021 5:33 pm
- Forum: General discussion
- Topic: nucleo 32-l432kc with mcp23018 Problème IODIR
- Replies: 2
- Views: 2488
Re: nucleo 32-l432kc with mcp23018 Problème IODIR
// I put my code in the setup to avoid the while in the loop to understand my problem
// I am attaching my void() registers configuration in another message
#include <Wire.h>
#define I2C_ADDR1 0x20 // ADDRS MCP 23018 1
#define I2C_ADDR2 0x21 // ADDRS MCP 23018 2
// --- SETTING ...
// I am attaching my void() registers configuration in another message
#include <Wire.h>
#define I2C_ADDR1 0x20 // ADDRS MCP 23018 1
#define I2C_ADDR2 0x21 // ADDRS MCP 23018 2
// --- SETTING ...
- Fri Dec 03, 2021 5:21 pm
- Forum: General discussion
- Topic: nucleo 32-l432kc with mcp23018 Problème IODIR
- Replies: 2
- Views: 2488
nucleo 32-l432kc with mcp23018 Problème IODIR
hello everybody :)
I am new user, i hope i am in the good section !
1st - sorry im french so i use google translate to try to explain my problem .. :)
2nd - ENVIRONMENT
/nucleo 32-l432kc
/IDE ARDUINO
/Wire.h
/all Register 0x00
/ADDRS : mcp1 0x20
/ADDRS : mcp2 0x21
/ADDRS : GPOIA 0X12
/ADDRS ...
I am new user, i hope i am in the good section !
1st - sorry im french so i use google translate to try to explain my problem .. :)
2nd - ENVIRONMENT
/nucleo 32-l432kc
/IDE ARDUINO
/Wire.h
/all Register 0x00
/ADDRS : mcp1 0x20
/ADDRS : mcp2 0x21
/ADDRS : GPOIA 0X12
/ADDRS ...