My plan is to have 2 TMAG5273 hall sensor breakouts communicating to a redboard plus
communicating through a qwiic mux. Seems easy enough but, I want to put both sensors in averaging mode. It would seem like I would define all libraries, begin mux setup, then call one sensor at a time and set them up individually. In practice, trying to do this causes conflicts. Separately I can get readings from one sensor set up to my liking. Separately I can run the mux. The problem lies in where the code must be in the sketch. The setup for average mode apparently has to be above the setup code area or it won’t compile. The code for operating the mux has to be in the main loop area or it won’t compile, but I want both in the same place which doesn’t compile. Also, the compiler won’t allow consecutive identical sets of setup code needed for the setup of 2 sensors.
In case you are wondering about my code, all I am doing is merging basic examples from Qwiic mux and from TMAG5273, which work fine separately.