A programmable toy comprising a microprocessor which can execute instructions in the form of program stored in a memory; a display integrated in the toy. The microprocessor is adapted to control electrical and/or electro-mechanical units in response to the instructions, said microprocessor being adapted to receive signals from electrical and/or electro-mechanical units. The display comprises a plurality of icons which each represent instructions for the microprocessor, and which can be activated by a user for programming of the microprocessor. The toy can hereby be programmed by means of a visual user interface.