I'm currently trying to get a 2 Adafruit trellis modules connected to axoloti. It's interfaced using I2C and this should be my starting point, but the object for i2c does nothing more than a setup routine I think.
I tried the most generic I2C arduino code I could find. It's an I2C scanner, I tested it om a regular 5V arduino and on a 3.3V RFDuino (with some mods) and it works on both devices. It reports back that there is a I2C device.
includes is an axoloti i2ctester.axp (3.0 KB) patch that has the converted code for axoloti. However it does not compile at the moment.
two questions
- I included the needed libraries for compiling by doing:
ln -s /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/Wire.h
ln -s /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.h
ln -s /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h
ln -s /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WString.h
ln -s /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/
ln -s /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Printable.h
which is probably not the right way of including libraries, as well as I might be naive to believe this would just work? What is the right way and can this be done with arduinolibs?
2. is the logic level on the SDA/SCL lines defined by axoloti or by the device I connect? will I fry axoloti if I connect a device with a 5V logic level that is powered by 5V