|
|
@@ -0,0 +1,21 @@
|
|
|
+#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;
|
|
|
+}
|
|
|
+
|
|
|
+chlcd_error_t
|