Thanks for reply ! Proteus work fine even without resistor for LED ... I wonder if my "adaptations" of code are corect.