LED brightness control

if (up = HIGH)

The usual.