/* Toggle the specified pixel/segment in the LCDCA display memory.  */
void lcdca_toggle_pixel(uint8_t pix_com, uint8_t pix_seg)
/* Toggle the specified pixel/segment in the LCDCA display memory.  */
void lcdca_toggle_pixel(uint8_t pix_com, uint8_t pix_seg)
{
	if ((pix_com < LCDCA_MAX_NR_OF_COM) &&
			(pix_seg < LCDCA_MAX_NBR_OF_SEG)) {
		uint64_t register_value = lcdca_get_pixel_register(pix_com);
		if (register_value & ((uint64_t)1 << pix_seg)) {
			lcdca_clear_pixel(pix_com, pix_seg);
		} else {
			lcdca_set_pixel(pix_com, pix_seg);
		}
	}
}