I hacked my daughter's Hello Kitty Pillow Pet Dream Light.  This is the (Arduino) code that's powering it