First time poster!
I’m having trouble compiling the code for the Next Bus Alert example.
Whether I copy/paste the example from the tutorial, or use example provided via the IDE.
I do have the library installed:
Adafruit_SSD1306 (0.0.2)
The raw script that is dying is:
DEPENDENCY=4,2,108 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\"" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++11 -c -o ../build/target/user/platform-6-msrc/dabus.o src/dabus.cpp
dabus.ino:17:1: error: 'Adafruit_SSD1306' does not name a type
dabus.ino: In function 'void setup()':
dabus.ino:46:3: error: 'display' was not declared in this scope
dabus.ino:46:17: error: 'SSD1306_SWITCHCAPVCC' was not declared in this scope
dabus.ino:49:24: error: 'WHITE' was not declared in this scope
dabus.ino: In function 'void loop()':
dabus.ino:58:3: error: 'display' was not declared in this scope
In file included from /usr/local/gcc-arm-embedded/arm-none-eabi/include/stdio.h:35:0,
from ./inc/application.h:84,
from src/dabus.cpp:1:
dabus.ino: In function 'String tryExtractString(int, String, const char*, const char*)':
dabus.ino:108:16: error: converting to 'String' from initializer list would use explicit constructor 'String::String(int, unsigned char)'
dabus.ino:108:16: warning: passing NULL to non-pointer argument 1 of 'String::String(int, unsigned char)' [-Wconversion-null]
dabus.ino:126:1: warning: control reaches end of non-void function [-Wreturn-type]
../build/module.mk:267: recipe for target '../build/target/user/platform-6-msrc/dabus.o' failed
make[2]: *** [../build/target/user/platform-6-msrc/dabus.o] Error 1
make[2]: Leaving directory '/firmware/user'
../../../build/recurse.mk:11: recipe for target 'user' failed
make[1]: *** [user] Error 2
make[1]: Leaving directory '/firmware/modules/photon/user-part'
../build/recurse.mk:11: recipe for target 'modules/photon/user-part' failed
make: *** [modules/photon/user-part] Error 2
There was another issue in the forum about this, which seemed to be related to 0.6.1… but I’m on 0.6.2.
Can anyone help?
Code is here:
https://docs.particle.io/tutorials/projects/maker-kit/#tutorial-2-next-bus-alert