diff --git a/PT6302.c b/PT6302.c index 8dbeecd..ff879f8 100644 --- a/PT6302.c +++ b/PT6302.c @@ -44,25 +44,3 @@ void transmit_bytes (const uint8_t *payload, const uint8_t size) _delay_us (DTCSH); PORTB |= CSBpin; } - - -void set_display_brightness (uint8_t level) -{ - switch (level) - { - case 0:transmit_bytes (0x0A, 1); - break; - case 1:transmit_bytes (0x2A, 1); - break; - case 2:transmit_bytes (0x4A, 1); - break; - case 3:transmit_bytes (0x6A, 1); - break; - case 4:transmit_bytes (0x8A, 1); - break; - case 5:transmit_bytes (0xAA, 1); - break; - case 6:transmit_bytes (0xCA, 1); - default:transmit_bytes (0xEA, 1); - } -} diff --git a/PT6302.h b/PT6302.h index 2e85cb9..ac1cbbd 100644 --- a/PT6302.h +++ b/PT6302.h @@ -19,7 +19,7 @@ /* ------------------------------------------------------------- - * Innitial setup for the VFD controller interface + * Initial setup for the VFD controller interface * Sets up the connected pins and leaves them in inactive state. * ------------------------------------------------------------- */ void PT6302_startup(void); @@ -32,11 +32,4 @@ void PT6302_startup(void); void transmit_bytes (const uint8_t* payload, uint8_t size); -/* -------------------------------------------------------------- - * Set the brightness of the VFD - * level can be between 0-7, 7 and larger will set max brightness - * It sets the display's duty cycle to conroll the brightness - * -------------------------------------------------------------- */ -void set_display_brightness (uint8_t level); - #endif //_PT6302_H_ diff --git a/main.c b/main.c index 013a83f..814ac37 100644 --- a/main.c +++ b/main.c @@ -6,10 +6,8 @@ int main () { - PT6302_startup (); - + PT6302_startup(); while (1) { - } }