| 1234567891011121314151617181920 |
- #include "chlcd.h"
- chlcd_error_t chlcd_display_init(chlcd_display_t *self) {
- chlcd_error_t result;
- result = self->decoder(CHLCD_INIT, 0x00, self->sender);
-
- if (result != CHLCD_SUCCESS) {
- return result;
- }
- result = self->decoder(CHLCD_CLEAR, 0x00, self->sender);
- if (result != CHLCD_SUCCESS) {
- return result;
- }
- return CHLCD_SUCCESS;
- }
|