Hello, I tried to compile your example and it works on my board. We have few ways to figure out what could be wrong.
First, let’s try the precompiled binaries from Github, so we can be sure, that your hardware is ok. Please install
bcf Python flashing utility by
pip3 install bcf. Then run
sudo bcf update and
sudo bcf list. We will try to upload the remote firmware which displays connected sensors’ values on the LCD module. Do not forget to set the Core Module to DFU mode before flashing.
bcf flash --dfu bigclownlabs/bcf-generic-node:firmware-battery-mini.bin:v1.4.0
Then I tried to display some text:
I cloned the bcf-skeleton-core-module, I don’t even updated the submodule, then I run compilation on my windows machine with make. Here is info about my gcc version.
gcc version 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437] (GNU Tools for ARM Embedded
I’ve used this code to display text:
// Initialize LCD
// The parameter is internal buffer in SDK, no need to define it
bc_module_lcd_draw_string(5, 5, "Hi from LCD", true);
// Don't forget to update
// Initialize LED
bc_led_init(&led, BC_GPIO_LED, false, false);
The text appears on the LCD and the red LED is also lit.
Please let us know your results.