Search found 4 matches

by petemilligan
30 May 2019 00:39
Forum: Z-Uno
Topic: Why does the wire library disregard the restart option
Replies: 4
Views: 5158

Re: Why does the wire library disregard the restart option

Messy but working. Bit banged a restart & then told Wire library that we're in a STOPPED state; Wire.beginTransmission(0x1D); Wire.write(0X0D); //WHO_AM_I //Wire.endTransmission(false); digitalWrite(10, HIGH); //sda delayMicroseconds(5); digitalWrite(9, HIGH); //scl delayMicroseconds(5); digital...
by petemilligan
29 May 2019 01:20
Forum: Z-Uno
Topic: Why does the wire library disregard the restart option
Replies: 4
Views: 5158

Re: Why does the wire library disregard the restart option

I get a restart with Z-Uno like this:
Capture2.PNG
Capture2.PNG (12.58 KiB) Viewed 5112 times
The device is an MMA8452Q XYZ. The 1st example works fine, I cannot get the Z-Uno to replicate using the supplied libraries. Please help.

Thanks,

Pete
by petemilligan
29 May 2019 01:19
Forum: Z-Uno
Topic: Why does the wire library disregard the restart option
Replies: 4
Views: 5158

Re: Why does the wire library disregard the restart option

I really need a restart like this: (this is standard Arduino Wire library)
Capture.PNG
Capture.PNG (13.71 KiB) Viewed 5113 times
by petemilligan
23 May 2019 21:17
Forum: Z-Uno
Topic: Why does the wire library disregard the restart option
Replies: 4
Views: 5158

Why does the wire library disregard the restart option

All, Having worked with a rather fussy I2C component. I need to use a restart, rather than a stop. I've looked at the wire.c library supplied, but whilst the stop param is supplied, it doesn't seem to be used. Any theories behind this? uint8_t TwoWire::endTransmission(uint8_t stop) { // We already s...