I assume that it is this part of the example code that changes the color of the button in the exampel:
Code: Select all
if (PORTB.0) then
begin
tmp := '#FFFF00'; memcpy(@indexPage+340, @tmp, 6); // highlight (yellow) ON
tmp := '#4974E2'; memcpy(@indexPage+431, @tmp, 6); // clear OFF
end
else
begin
tmp := '#4974E2'; memcpy(@indexPage+340, @tmp, 6); // clear ON
tmp := '#FFFF00'; memcpy(@indexPage+431, @tmp, 6); // highlight (yellow) OFF
end;
Regards
Ulf