added digital test pattern mode