Hi Folks.
Am working on a Mega based device found on Git. Have built one and got it working. It could use more horsepower and less hardware real estate so I've managed to get it *partially* working on a Teensy 3.2 or at least enough to test it's engine.
There's some 800k of code and at the moment I don't want to drop a rabbit warren here so here's the guts of it.
From the device's manual:-
Using IDE1.8.10 TD 1.48.The following edits were applied to the Wire library in:-
C:\Program Files(x86)\Arduino\hardware\teensy\avr\libraries\
Was inserted at line 68 in Wire.h
and
was inserted at line 198 in Wire.cpp
The compiler fell over with:-
Which leads me to humbly ask :-
(a) Is the added Wire.endTransmissionNonblocking Member correct for Teensy's Wire library
and
(b) If so how does one get the compiler to see and use it?
All the best and thanks in advance.
Am working on a Mega based device found on Git. Have built one and got it working. It could use more horsepower and less hardware real estate so I've managed to get it *partially* working on a Teensy 3.2 or at least enough to test it's engine.
There's some 800k of code and at the moment I don't want to drop a rabbit warren here so here's the guts of it.
From the device's manual:-
Add Nonblocking I2C WritesThis will dramatically speed up I2C for our purposes.
(a) Locate yourWire.cpp and Wire.h files. On the Mac they’re located inArduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/
(b) Add the following line inside the “public” method region inWire.h:
uint8_t endTransmissionNonblocking();
(c) Add the following method toWire.cpp:
uint8_t TwoWire::endTransmissionNonblocking()
{
uint8_t ret = twi_writeTo(txAddress, txBuffer, txBufferLength, 0, 1);
return ret;
}
Using IDE1.8.10 TD 1.48.The following edits were applied to the Wire library in:-
C:\Program Files(x86)\Arduino\hardware\teensy\avr\libraries\
Code:
uint8_t endTransmissionNonblocking();
and
Code:
uint8_t TwoWire::endTransmissionNonblocking()
{
uint8_t ret = twi_writeTo(txAddress, txBuffer, txBufferLength, 0, 1);
return ret;
}
The compiler fell over with:-
Code:
'class TwoWire has no member named 'endTransmissionNonblocking'
(a) Is the added Wire.endTransmissionNonblocking Member correct for Teensy's Wire library
and
(b) If so how does one get the compiler to see and use it?
All the best and thanks in advance.