Due to problems with the old variants.h file, I made the mistake of upgrading to toolchain 4.9.3. I have also obtained a new license which I placed in the licenses folder. I deleted the old 4.9.1 license.
Now I can not compile anything due to the error: license check: No valid license!
Please contact Hightec's support at firstname.lastname@example.org!
I contacted Technical Support and they upgraded my license.
But now, all my i2c devices are not working. The program would compile fine but then all i2c devices were not working. I then spent several hours debugging the board, solders and so on and could not find anything. I found out that the ShieldBuddy installed had the old version(for 4.9.1). When I updated to the latest version, I am now getting the compile error "SerialClass2" has not been declared.
Then I tried to reprogram the board with another machine that has 4.9.1 and everything came back alive.
Since 4.9.1 was working just fine, how can I downgrade given that the license is for 4.9.3?
This changed in the last release. The default was SDA and SCL but it was changed to SDA1 and SCL1. Make sure that you set the I2C to use SDA and SCL. These are pins 20 and 21 on the ShieldBuddy.
Wire.setWirePins(UsePins_20_21); // Default pins for Arduino Due/MEGA Wire.begin();
Thank you for letting me know.
I am extremely puzzled as to why that change was made?! There appears to be a complete disregard to the havoc this causes to the ShieldBuddy customers!
I have two i2c devices, a SH1106 OLED and an i2c FRAM memory (https://www.adafruit.com/product/1895). Both had stopped working.
I included the code above but now the screen is garbled and the FRAM memory reads junk. I have attached the OLED library and the FRAM library and would appreciate your help is finding out what is going on.
The version you have is not formally released and was for testing the Leddar solution. In this test version, the I2C driver has been completely re-written as there were some issues with the original one. We will test the new I2C driver with the SH1106 and FRAM to see what the problem is. The default I2C pins will be put back to SCL and SDA. It will take a few days to get the FRAM and OLED for testing.
You can put the old I2C driver back by copying these files to: