Help with coding a delay

AI2 does not support delay procedures like you would find in low level devices.

Instead, have a Clock (from the Sensors Drawer) periodically cycle through whatever global variables or Button attributes (Bold, background color) have been set by your button Touchdown and TouchUP events for the Clock Timer event block to know what to send.