function P1 () { basic.showIcon(IconNames.Yes) pins.digitalWritePin(DigitalPin.P1, 1) basic.pause(1000) pins.digitalWritePin(DigitalPin.P1, 0) basic.pause(1000) } function P16 () { basic.showIcon(IconNames.No) pins.digitalWritePin(DigitalPin.P16, 1) basic.pause(1000) pins.digitalWritePin(DigitalPin.P16, 0) basic.pause(1000) } function P12 () { basic.showIcon(IconNames.SmallHeart) pins.digitalWritePin(DigitalPin.P12, 1) basic.pause(1000) pins.digitalWritePin(DigitalPin.P12, 0) basic.pause(1000) } basic.showIcon(IconNames.Happy) basic.forever(function () { P1() basic.pause(1000) P16() basic.pause(1000) P12() basic.pause(1000) })