It looks like you're trying to mix python and C in the same source file, and that just won't work. For python, the
#
char starts a comment that extends to the end of the line so the lines
#from microbit import *
#include <LiquidCrystal.h>
are completely ignored. For C the first of those two lines should produce an error regarding an invalid preprocessing directive #from. In C you can't define and initialize an object outside of a function - i.e. the definition of LiquidCrystal lc(...), but then again in Python, you don't declare functions as
void setup()
. And in C all programs need to have a
main()
function where the program starts. So you seem to be confused about what language you are trying to create your program in. For whatever library or framework or whatever is providing you with LiquidCrystal or the microbit python package, take a look at any accompanying documentation, or the providers web site and see if there is any tutorial or examples on how to use the package.