led handling & grid input