I’ve tried running the cose and I also changed Spark. to Particle. in the whole file.
It still won’t compile:
nokia5110lcd.cpp:187:9: error: 'boolean led_update' redeclared as different kind of symbol
0x0E, 0x01, 0xC0, 0x3F, 0xE0, 0x00, 0x00, 0x03, 0x0E, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
^
In file included from ../system/inc/system_led_signal.h:21:0,
from ../wiring/inc/spark_wiring_led.h:21,
from ./inc/application.h:70,
from nokia5110lcd.cpp:25:
../services/inc/led_service.h:81:6: error: previous declaration of 'void led_update(system_tick_t, LEDStatusData*, void*)'
void led_update(system_tick_t ticks, LEDStatusData* status, void* reserved);
^
In file included from ../wiring/inc/spark_wiring.h:37:0,
from ./inc/application.h:36,
from nokia5110lcd.cpp:25:
nokia5110lcd.cpp: In function 'void loop()':
../wiring/inc/spark_wiring_constants.h:63:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
#define TRUE (!FALSE)
^
nokia5110lcd.cpp:240:22: note: in expansion of macro 'TRUE'
WiFi.off();
^
nokia5110lcd.cpp:243:20: error: assignment of function 'void led_update(system_tick_t, LEDStatusData*, void*)'
}
^
nokia5110lcd.cpp:243:20: error: cannot convert 'int' to 'void(system_tick_t, LEDStatusData*, void*) {aka void(long unsigned int, LEDStatusData*, void*)}' in assignment
nokia5110lcd.cpp: In function 'int ledBrightness(String)':
nokia5110lcd.cpp:289:16: error: assignment of function 'void led_update(system_tick_t, LEDStatusData*, void*)'
// else if (msg == "off")
^
nokia5110lcd.cpp:289:16: error: cannot convert 'bool' to 'void(system_tick_t, LEDStatusData*, void*) {aka void(long unsigned int, LEDStatusData*, void*)}' in assignment
make[1]: *** [../build/target/user/platform-6nokia5110lcd.o] Error 1
make: *** [user] Error 2
I’ve also read about wiring in the readme of the .ino file:
#define PIN_POWER A7 //Pin 1 on LCD
#define PIN_SCE A2 //Pin 3 on LCD
#define PIN_RESET A0 //Pin 4 on LCD
#define PIN_DC A1 //Pin 5 on LCD
#define PIN_SDIN A5 //Pin 6 on LCD
#define PIN_SCLK A3 //Pin 7 on LCD
#define PIN_LED A6 //Pin 8 on LCD
but my Photon has just from A0 to A5.
Surely I am missing something…