I remember reading about an ancient Greek device that wouldn't be considered a computer, but did allow them to program and automate the movement of props, curtains, and scenery during theatrical performances.