Code
ATtiny & Arduino

This post contains a collection of links, notes and references related to programming the ATtiny 45 & 84 chips using the arduino language.
Large Analog Input Matrix

This 28×28 matrix was used in the rSkin project to visualize pressure and location of pressure applied to a rectangular neoprene pressure sensor matrix that was wrapped around a robot arm.
RGB Colour Fade

The following arduino code lets you input two RGB colours and then automatically fades from the first to the second. The following video shows the effects of this code.
2×2 Analog Input Matrix

This code is great for visualizing pressure sensor matrices using a grid of squares that are filled with gray-scale values from 0-255, corresponding to the pressure sensor value.
Analog Input Graph

In many of our textile sensor videos and examples we use an arduino programmed to read analog sensor values and send them over serial to a computer running a visualization written in processing. We have taken our code from the following examples:
Etch-a-Sketch Drawing

Reads 4 analog inputs and maps them to control the direction of a line being drawn.







