I'm running into the well-known problem that the VirtualWire messes up the timings with the ATTINY85. In particular it is stopping the ADXL362 accelerometer running. I presume because it's messing up the SPI. I have tried changing the timer to 0 in core_build_options.h but that doesn't seem to have an effect.
I want to take the accelerometer readings, transmit then, wait a few seconds then repeat.
Things go wrong as soon as these lines are included:
vw_set_tx_pin(txpin);
vw_setup(500);
Normally these lines would be in setup() but a kludgy kind of solution would be to put them instead in loop() - so I take the accelerometer readings, only then initialise VirtualWire, then transmit. This works, but how do I then, in effect, turn off VirtualWire until I need to transmit again? i.e. how do I undo the two lines of code above so that the accelerometer works again?
All advice gratefully received.
Robert