Hello, I was wondering there there was a way to make an SPI to i2c bridge?
The reason why I’m asking if this can be done is because I don’t have any SPI pins they are being used really I don’t have any pins at all besides the i2c pins and I have a SPI lcd I would like to use.
What are the SPI pins used for? You know that SPI is a bus like I2C so there can be multiple devices on the SPI bus as long as each device has its own chip select pin?
Hello, the pins current at the moment are being to control fans and two leds. Because I don’t have any spare pins besides a3, a4 and a5? The fans are on D10 and D11.
Those analog pins are really digital pins with analog input as a special function. Use 2 of the analog inputs in digital mode for the fans. What is connected to pins 12 and 13?
It is hard to give any advice without knowing the particulars of the project. A detailed schematic would help a lot so we know, exactly, what parts that you are using and how they are connected.
I would say that both SPI and I2C are buses as they connect several devices to the same set of pins. A port like a RS323 UART serial port. The port is meant for a 1 to 1 connection. Whereas RS485 serial or Dallas One Wire is a bus, several devices connect to the same 2 wires.