Not sure about commit but here is write code.
Wire.beginTransmission(deviceaddress);
Wire.write((int)(eeaddress >> 8)); // MSB
Wire.write((int)(eeaddress & 0xFF)); // LSB
Wire.write(data);
Wire.endTransmission();
delay(5);
Search found 19 matches
- Mon Jan 30, 2017 7:41 pm
- Forum: ESP8266 boards
- Topic: I2C EEPROM on uPy/ESP8266?
- Replies: 48
- Views: 43284
- Mon Jan 30, 2017 4:11 pm
- Forum: ESP8266 boards
- Topic: I2C EEPROM on uPy/ESP8266?
- Replies: 48
- Views: 43284
Re: I2C EEPROM on uPy/ESP8266?
Sorry didn't make that very clear. I wrote random values to eeprom with Arduino and the values read back were OK. After trying to read them on the ESP all I got was xff at each memory location. When read again on the Arduino all addresses returned xff.
- Mon Jan 30, 2017 4:05 pm
- Forum: ESP8266 boards
- Topic: I2C EEPROM on uPy/ESP8266?
- Replies: 48
- Views: 43284
Re: I2C EEPROM on uPy/ESP8266?
Yes, I am connecting with pull-up resistors. After more tests I find if I write the eeprom with Arduino and only read it with ESP the values are all xff however, if I then read the eeprom with Arduino, all the memory has been changed to xff.
- Mon Jan 30, 2017 9:52 am
- Forum: ESP8266 boards
- Topic: I2C EEPROM on uPy/ESP8266?
- Replies: 48
- Views: 43284
Re: I2C EEPROM on uPy/ESP8266?
Sorry, don't have a logic analyser. I am connecting directly to an eeprom chip via 4.7k resistors. Have tried other values, other frequencies and two different eeproms which both work with Arduino.
- Sun Jan 29, 2017 1:30 pm
- Forum: ESP8266 boards
- Topic: I2C EEPROM on uPy/ESP8266?
- Replies: 48
- Views: 43284
Re: I2C EEPROM on uPy/ESP8266?
Seems to be a problem as I am unable to read an eeprom on my ESP-12.
I can read/write ok on Arduino but can't read it back on ESP.
I get the result... xff from every location.
I can read/write ok on Arduino but can't read it back on ESP.
I get the result... xff from every location.
- Mon Jan 16, 2017 2:55 pm
- Forum: ESP8266 boards
- Topic: Reading Battery Voltage internally
- Replies: 3
- Views: 4806
Re: Reading Battery Voltage internally
Thanks for that. I will just have to use resistors.
- Mon Jan 16, 2017 12:51 pm
- Forum: ESP8266 boards
- Topic: Reading Battery Voltage internally
- Replies: 3
- Views: 4806
Reading Battery Voltage internally
I am running some ESP's on batteries. Is there any way to read battery voltage like I can in Arduino...
ADC_MODE(ADC_VCC)
ESP.getVcc()
or will I have to read the voltage via a resistor divider on the ADC pin?
ADC_MODE(ADC_VCC)
ESP.getVcc()
or will I have to read the voltage via a resistor divider on the ADC pin?
- Wed Jan 11, 2017 9:42 pm
- Forum: ESP8266 boards
- Topic: HELP! Micropython dictionary
- Replies: 3
- Views: 4390
Re: HELP! Micropython dictionary
Thanks very much for that. I would never have got there with google. I am new to python and have only coded with Arduino.
Thanks again......Mick
Thanks again......Mick
- Wed Jan 11, 2017 6:17 pm
- Forum: ESP8266 boards
- Topic: HELP! Micropython dictionary
- Replies: 3
- Views: 4390
HELP! Micropython dictionary
I have been searching docs for 2 days and can't find the info I require. I have a dictionary named data, containing info from dweet.io. I wan't to extract {'Humidity': 72, 'Temperature': 17, 'Battery': 4.10} from the following dictionary... {'the': 'dweets', 'with': [{'content': {'Humidity': 72, 'Te...