31-08-2020, 20:44
Próbuję uruchomić na Arduino UNO r3 kod timera strzeleckiego z githuba:
https://github.com/SolemnScribe/arduino-shot-timer
Różnica u mnie jest taka, że nie ma być to na Adafruit RGB LCD Shield, tylko na zwykły LCD Shield.
Po pierwsze dostaję: variable or field 'lcd_print' declared void
Po drugie zastanawiam się jak wywalić z tego Adafruit
W jakim kierunku powinienem iść?
https://github.com/SolemnScribe/arduino-shot-timer
Różnica u mnie jest taka, że nie ma być to na Adafruit RGB LCD Shield, tylko na zwykły LCD Shield.
Po pierwsze dostaję: variable or field 'lcd_print' declared void
Po drugie zastanawiam się jak wywalić z tego Adafruit
W jakim kierunku powinienem iść?
Kod:
//////////////////////////////
// Print to an LCD
//////////////////////////////
void lcd_print(Adafruit_RGBLCDShield* lcd, uint32_t t, byte digits)
{
DEBUG_PRINT(F("Printing to LCD:"));
char lcd_output[11];
convert_num(t, digits, lcd_output);
DEBUG_PRINTLN(lcd_output,0);
lcd->print(lcd_output);
}
//////////////////////////////
// Print time to an LCD screen
//////////////////////////////
void lcd_print_time(Adafruit_RGBLCDShield* lcd, uint32_t t, byte digits)
{
DEBUG_PRINTLN(F("Printing Time to LCD"),0);
char lcd_output[11];
convert_time(t, digits, lcd_output);
DEBUG_PRINTLN(lcd_output,0);
lcd->print(lcd_output);
}
#endif // LCDHELPERS_H_