ich nutze diesen Thread mal weiter, weil mein Problem einigermaßen gut zur Überschrift passt.
Ich habe einen ESP8266 und ein Display mit ST7789 Controller hier. Auf Github habe ich eine Bibliothek für das Display gefunden, die allerdings in C geschrieben ist. Also muss ich laut Anleitung MicroPython wieder kompilieren und dabei die Bibliothek einbinden.
Mein erster Versuch MicroPython ohne die Bibliothek zu kompilieren war erfolgreich. Ich habe mich an die
gehalten und habe unter Fedora Docker genutzt (Docker wird ja empfohlen).
einzubinden habe ich alle Schritte wiederholt und habe den make-Befehl wie folgt abgeändert:
Jetzt kommt leider eine lange Liste an Fehlermeldungen, die mir nicht viel sagen und ich hoffe ihr könnt mir weiter helfen.
Code: Alles auswählen
[dennis@dennis esp8266]$ sudo docker run --rm -v $HOME:$HOME -u $UID -w $PWD larsks/esp-open-sdk make -j BOARD=GENERIC USER_C_MODULES=/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/ all
[sudo] Passwort für dennis:
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy//st7789
mkdir -p build-GENERIC/st7789/
CC /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:495:19: error: 'MP_QSTR_blit_buffer' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_blit_buffer), MP_ROM_PTR(&st7789_ST7789_blit_buffer_obj) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:495:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_blit_buffer), MP_ROM_PTR(&st7789_ST7789_blit_buffer_obj) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:509:13: error: 'MP_QSTR_ST7789' undeclared here (not in a function)
.name = MP_QSTR_ST7789,
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:509:5: error: initializer element is not constant
.name = MP_QSTR_ST7789,
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:509:5: error: (near initialization for 'st7789_ST7789_type.name')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c: In function 'st7789_ST7789_make_new':
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:524:11: error: 'MP_QSTR_spi' undeclared (first use in this function)
{ MP_QSTR_spi, MP_ARG_OBJ | MP_ARG_REQUIRED, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:524:11: note: each undeclared identifier is reported only once for each function it appears in
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:524:9: error: initializer element is not constant
{ MP_QSTR_spi, MP_ARG_OBJ | MP_ARG_REQUIRED, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:524:9: error: (near initialization for 'allowed_args[0].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:525:11: error: 'MP_QSTR_width' undeclared (first use in this function)
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = 0} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:525:9: error: initializer element is not constant
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = 0} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:525:9: error: (near initialization for 'allowed_args[1].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:526:11: error: 'MP_QSTR_height' undeclared (first use in this function)
{ MP_QSTR_height, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = 0} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:526:9: error: initializer element is not constant
{ MP_QSTR_height, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = 0} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:526:9: error: (near initialization for 'allowed_args[2].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:528:11: error: 'MP_QSTR_dc' undeclared (first use in this function)
{ MP_QSTR_dc, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:528:9: error: initializer element is not constant
{ MP_QSTR_dc, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:528:9: error: (near initialization for 'allowed_args[4].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:529:11: error: 'MP_QSTR_cs' undeclared (first use in this function)
{ MP_QSTR_cs, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:529:9: error: initializer element is not constant
{ MP_QSTR_cs, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:529:9: error: (near initialization for 'allowed_args[5].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:530:11: error: 'MP_QSTR_backlight' undeclared (first use in this function)
{ MP_QSTR_backlight, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:530:9: error: initializer element is not constant
{ MP_QSTR_backlight, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:530:9: error: (near initialization for 'allowed_args[6].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:531:11: error: 'MP_QSTR_xstart' undeclared (first use in this function)
{ MP_QSTR_xstart, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = -1} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:531:9: error: initializer element is not constant
{ MP_QSTR_xstart, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = -1} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:531:9: error: (near initialization for 'allowed_args[7].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:532:11: error: 'MP_QSTR_ystart' undeclared (first use in this function)
{ MP_QSTR_ystart, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = -1} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:532:9: error: initializer element is not constant
{ MP_QSTR_ystart, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = -1} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:532:9: error: (near initialization for 'allowed_args[8].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c: In function 'st7789_map_bitarray_to_rgb565':
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:620:11: error: 'MP_QSTR_bitarray' undeclared (first use in this function)
{ MP_QSTR_bitarray, MP_ARG_OBJ | MP_ARG_REQUIRED, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:620:9: error: initializer element is not constant
{ MP_QSTR_bitarray, MP_ARG_OBJ | MP_ARG_REQUIRED, {.u_obj = MP_OBJ_NULL} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:620:9: error: (near initialization for 'allowed_args[0].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:622:11: error: 'MP_QSTR_width' undeclared (first use in this function)
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = -1} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:622:9: error: initializer element is not constant
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = -1} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:622:9: error: (near initialization for 'allowed_args[2].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:623:11: error: 'MP_QSTR_color' undeclared (first use in this function)
{ MP_QSTR_color, MP_ARG_INT, {.u_int = WHITE} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:623:9: error: initializer element is not constant
{ MP_QSTR_color, MP_ARG_INT, {.u_int = WHITE} },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:623:9: error: (near initialization for 'allowed_args[3].qst')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:624:11: error: 'MP_QSTR_bg_color' undeclared (first use in this function)
{ MP_QSTR_bg_color, MP_ARG_INT, {.u_int = BLACK } },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:624:9: error: initializer element is not constant
{ MP_QSTR_bg_color, MP_ARG_INT, {.u_int = BLACK } },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:624:9: error: (near initialization for 'allowed_args[4].qst')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c: At top level:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:645:54: error: 'MP_QSTR_st7789' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_st7789) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:645:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_st7789) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:645:5: error: (near initialization for 'st7789_module_globals_table[0].value')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:646:19: error: 'MP_QSTR_color565' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_color565), (mp_obj_t)&st7789_color565_obj },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:646:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_color565), (mp_obj_t)&st7789_color565_obj },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:646:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_color565), (mp_obj_t)&st7789_color565_obj },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:646:5: error: (near initialization for 'st7789_module_globals_table[1].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:647:19: error: 'MP_QSTR_map_bitarray_to_rgb565' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_map_bitarray_to_rgb565), (mp_obj_t)&st7789_map_bitarray_to_rgb565_obj },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:647:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_map_bitarray_to_rgb565), (mp_obj_t)&st7789_map_bitarray_to_rgb565_obj },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:647:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_map_bitarray_to_rgb565), (mp_obj_t)&st7789_map_bitarray_to_rgb565_obj },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:647:5: error: (near initialization for 'st7789_module_globals_table[2].key')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:648:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_ST7789), (mp_obj_t)&st7789_ST7789_type },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:648:5: error: (near initialization for 'st7789_module_globals_table[3].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:649:19: error: 'MP_QSTR_BLACK' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_BLACK), MP_ROM_INT(BLACK) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:649:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_BLACK), MP_ROM_INT(BLACK) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:649:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_BLACK), MP_ROM_INT(BLACK) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:649:5: error: (near initialization for 'st7789_module_globals_table[4].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:650:19: error: 'MP_QSTR_BLUE' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_BLUE), MP_ROM_INT(BLUE) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:650:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_BLUE), MP_ROM_INT(BLUE) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:650:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_BLUE), MP_ROM_INT(BLUE) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:650:5: error: (near initialization for 'st7789_module_globals_table[5].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:651:19: error: 'MP_QSTR_RED' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_RED), MP_ROM_INT(RED) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:651:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_RED), MP_ROM_INT(RED) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:651:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_RED), MP_ROM_INT(RED) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:651:5: error: (near initialization for 'st7789_module_globals_table[6].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:652:19: error: 'MP_QSTR_GREEN' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_GREEN), MP_ROM_INT(GREEN) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:652:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_GREEN), MP_ROM_INT(GREEN) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:652:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_GREEN), MP_ROM_INT(GREEN) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:652:5: error: (near initialization for 'st7789_module_globals_table[7].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:653:19: error: 'MP_QSTR_CYAN' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_CYAN), MP_ROM_INT(CYAN) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:653:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_CYAN), MP_ROM_INT(CYAN) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:653:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_CYAN), MP_ROM_INT(CYAN) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:653:5: error: (near initialization for 'st7789_module_globals_table[8].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:654:19: error: 'MP_QSTR_MAGENTA' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_MAGENTA), MP_ROM_INT(MAGENTA) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:654:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_MAGENTA), MP_ROM_INT(MAGENTA) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:654:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_MAGENTA), MP_ROM_INT(MAGENTA) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:654:5: error: (near initialization for 'st7789_module_globals_table[9].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:655:19: error: 'MP_QSTR_YELLOW' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_YELLOW), MP_ROM_INT(YELLOW) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:655:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_YELLOW), MP_ROM_INT(YELLOW) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:655:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_YELLOW), MP_ROM_INT(YELLOW) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:655:5: error: (near initialization for 'st7789_module_globals_table[10].key')
In file included from /home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:27:0:
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:656:19: error: 'MP_QSTR_WHITE' undeclared here (not in a function)
{ MP_ROM_QSTR(MP_QSTR_WHITE), MP_ROM_INT(WHITE) },
^
../../py/obj.h:214:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 4) | 0x00000006))
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:656:7: note: in expansion of macro 'MP_ROM_QSTR'
{ MP_ROM_QSTR(MP_QSTR_WHITE), MP_ROM_INT(WHITE) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:656:5: error: initializer element is not constant
{ MP_ROM_QSTR(MP_QSTR_WHITE), MP_ROM_INT(WHITE) },
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:656:5: error: (near initialization for 'st7789_module_globals_table[11].key')
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:666:75: error: macro "MP_REGISTER_MODULE" passed 3 arguments, but takes just 2
MP_REGISTER_MODULE(MP_QSTR_st7789, mp_module_st7789, MODULE_ST7789_ENABLED);
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:666:1: error: data definition has no type or storage class [-Werror]
MP_REGISTER_MODULE(MP_QSTR_st7789, mp_module_st7789, MODULE_ST7789_ENABLED);
^
/home/dennis/Dokumente/MicroPython_ST7789/st7789_mpy/st7789/st7789.c:666:1: error: type defaults to 'int' in declaration of 'MP_REGISTER_MODULE' [-Werror]
cc1: all warnings being treated as errors
make: *** [../../py/mkrules.mk:80: build-GENERIC/st7789/st7789.o] Error 1
make: *** Waiting for unfinished jobs....
[dennis@dennis esp8266]$
Kann es sein das mit der C-Datei was nicht stimmt?In der Fehlermeldung steht was "undeklariert". Das GitHub ist zwei Jahre alt und viele Issues sind auch nicht vorhanden, da bin ich davon ausgegangen dass das bestimmt funktioniert. (und der Fehler vermulich wieder vor dem PC sitzt)
Vielen Dank schon ein mal vorab.