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) } basic.showIcon(IconNames.Happy) basic.forever(function () { P16() basic.pause(1000) P1() basic.pause(1000) })