mirror of
https://github.com/cclassic/hcs12ss59t
synced 2024-11-22 02:15:05 +01:00
Add hcs12ss59t_set_lights function
This commit is contained in:
parent
a69247c08b
commit
6229ce9c1c
11
hcs12ss59t.c
11
hcs12ss59t.c
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user