Driving multiple DRV2605L with TCA9548A Multiplexer

Hi

I am currently doing a haptic project that requires me to drive multiple LRA's using DRV2605L Haptic Driver breakout board. I am also using the TCA9548A Multiplexer (also Adafruit breakout) to drive multiple at the same time.

Ideally, I am trying to drive 4 LRA's sequentially (i.e LRA 1 buzzes, stops, LRA 2 buzzes, stops, LRA 3 buzzes, stops etc.)

However, when it comes to the code I unfortunately have no idea where to start, let alone where I am going wrong. I have no experience with Arduino's or coding before.

I have attached my attempted code thus far.

Any help or guidance as to how to code multiple LRA's to work would be greatly appreciated.

Cheers

test3.ino (1.04 KB)

//Select the multiplexer port
tcaselect(2);                      
tcaselect(3);  
tcaselect(6);
tcaselect(7);

These calls are useless.

tcaselect(2);  
drv.begin ();
drv.setWaveform(0,1);  
drv.setWaveform(1, 0);   
drv.go();

You start the driver (go()) bug you don't stop it.

Does that code prodice anything? If not, post a complete wiring diagram as the error is probably there.