Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By viscomjim
#32395 Do you have any plans to implement I2C in MMISCOOL basic? This would be good for expanding I/O, using displays, and many other things.

Thanks for this firmware! AWESOME!
User avatar
By Mmiscool
#32413 Instant wish fulfillment mode on. :D

I had added I2C function some time ago but have not documented them yet.

Still need to do that but don't really have any i2c devices to test with.


Basic function = arduino function
    i2c.begin(address as number) = Wire.beginTransmission(address as number);
    i2c.write(stringToWrite) = Wire.write(StringToWrite);
    2c.end() = Wire.endTransmission();
    i2c.requestfrom(addressAsNumber,numberOfCharacters) = Wire.requestFrom(Address,NoOfBytes);
    i2c.available() = Wire.available());
    i2c.read() = Wire.read();


Keep in mind these have not been tested.

I2c is set on pins 0 and 2

Arduino docs for i2c functions is at the following link.
https://www.arduino.cc/en/Reference/Wire/
User avatar
By cwilt
#32535 Also, what are you calling pin 0 and 2?

I have seen many different IO numbering methods used for esp8266 in the past. Can you provide a link to the pinout your are using?