How can I set brightness on my LED

Is work on analogWrite(). :slight_smile: thx. but do i need to connect resistors? and way?