I am using Adafruit 1.8TFT and MS5535 on same Teensy 3.1 board. But can not make work the devices correctely together.
I think it is CS problem, seem AdafruitST7735 is somehow preventing me from manualy manipulating CS for the sensor. As soon as I initialize the tft I lost sensor data. Does someone know how to solve this problem?
I attach the library and examples. The MS55xx eksample is MS5541 modified library to work with MS5535 too on Teensy 3.1 board. The example for mentioned problem is MA55xx_underwater_test
Yes you helped creators off the library time agoo. I only changed it to work on both sensors.
And chaged it a bit to work on Teensy 3.1 too.
Ok, in the mean time I did some chagnes to Adafruit_ST7735 library - adding SPI.beginTransaction() and SPI.endTransaction() wherever something is sent to the SPI. Same I tried to do with the MS55xx library, but no change in sensor data. Will try to make the CS a class parameter instead of hadcoding it.
But do not think that would change anything.... untill I added TFT library and initiated it reading of sensor worked very well.
Hm.....trying to recode the library to use Class parameters I found something is wrong probably with library... so will rewrite it completely. Transcribe it complete with cs and mclk for sensor passing as Class parameters. Seem for some strange reason actual library can not be changed to use parameters....compiler does not see them.
Please can you check the files if everything correctely put together?
Ok, good newes!!
Adafruit updated thrir library per last standards in SPI communication and now I finaly have a solution iny hands. Will post links to the thread with updated ST7735 library and new version of MS55xx library updated to same standard.