
arduino programs
Get flash to fully experience Pearltrees
I2C (also referred as IIC or TWI) is widely used interface in embedded applications. Two wire bus initially was used by Philips and become a standard among chip vendors. I2C bus consists of two lines called Serial Data Line (SDA) and Serial Clock Line (SCL). Communication is relatively fast and short distance mainly used to communicate between sensors, RTC, EEPROM, LCD.
Programming AVR I2C interface
NOTE: This is a very simple program, and will generate stupid output if you give stupid input. As an important example, if your bits end up being less than 2 pixels wide or so (due to trying to generate too small of a wheel with a small inner radius), they will not be filled in even though they should be. You have been warned! Wow, people are actually using this!
Optical Encoder Wheel Generator
sketches

