1
0
mirror of https://github.com/cclassic/hcs12ss59t synced 2024-11-21 18:05:05 +01:00

Add hcs12ss59t_set_lights function

This commit is contained in:
Markus Koch 2018-01-13 09:53:07 +01:00
parent a69247c08b
commit 6229ce9c1c
2 changed files with 11 additions and 1 deletions

View File

@ -90,7 +90,7 @@ void hcs12ss59t_reset()
/* Configure controlller for VFD */
hcs12ss59t_send_cmd(HCS12SS59T_NUMDIGIT, HCS12SS59T_NUMDIGITS);
hcs12ss59t_send_cmd(HCS12SS59T_LIGHTS, HCS12SS59T_LINORM);
hcs12ss59t_set_lights(HCS12SS59T_LINORM);
hcs12ss59t_set_brightness(HCS12SS59T_DEFAULT_BRIGHTNESS);
}
@ -125,3 +125,12 @@ void hcs12ss59t_set_buffer(char *data)
}
HCS12SS59T_DESELECT;
}
/**
* @brief hcs12ss59t_set_lights Set the display mode to on, off or test
* @param lights value, use constants HCS12SS59T_LI*
*/
void hcs12ss59t_set_lights(char lights)
{
hcs12ss59t_send_cmd(HCS12SS59T_LIGHTS, lights);
}

View File

@ -51,6 +51,7 @@ void hcs12ss59t_reset();
void hcs12ss59t_set_text(char *text);
void hcs12ss59t_set_buffer(char *data);
void hcs12ss59t_set_brightness(char brightness);
void hcs12ss59t_set_lights(char lights);
/* Low level functions */
void hcs12ss59t_send_byte(char c);