Salve a tutti,
Richiamo la vostra attenzione, a causa di un problema di compilazione, relativo ad un progetto postato nella
sezione "Arduino Project HUB": https://create.arduino.cc/projecthub/jeffreymagee/attiny85-pulse-oximeter-and-photoplethysmograph-e3f907 (https://create.arduino.cc/projecthub/jeffreymagee/attiny85-pulse-oximeter-and-photoplethysmograph-e3f907)
ho anche cercato di lasciare un commento all'autore del progetto, ma non ho ricevuto risposta e la cosa mi
dispiace, perché reputo il progetto interessante dal punto di vista didattico.
Sono riuscito comunque a farlo funzionare, tramite schede "Arduino UNO", "MINI", "NANO", ma se
s'installano le librerie modificate per "Attiny 85":
http://drazzy.com/package_drazzy.com_index.jso
n (http://drazzy.com/package_drazzy.com_index.json)), viene generato questo errore:
display: Arduino: 1.8.10 (Mac OS X), Board: "ATtiny25 / 45/85, Enabled, CPU, ATtiny85, 8 MHz (internal), EEPROM retained, BOD Disabled, Enabled"
In file included from sketch / ssd1306h.cpp: 15: 0:
ssd1306h.h: 47: 38: error: '__FlashStringHelper' does not name a type
void drawStr (int x, int y, const __FlashStringHelper * s, const int BIG = 1);
^ ~~~~~~~~~~~~~~~~~~
ssd1306h.cpp: 179: 43: error: '__FlashStringHelper' does not name a type
void SSD1306 :: drawStr (int x, int y, const __FlashStringHelper * s, const int BIG = 1) {
^ ~~~~~~~~~~~~~~~~~~
sketch / ssd1306h.cpp: In member function 'bool SSD1306 :: nextPage ()':
ssd1306h.cpp: 224: 5: error: 'memset' was not declared in this scope
memset (pageBuf, 0x00, COLUMNS);
^ ~~~~~
In file included from sketch / MAX30102.cpp: 8: 0:
/Users/…./Library/Arduino15/packages/ATTinyCore/hardware/avr/1.3.3/libraries/Wire/src/Wire.h: In member function 'uint16_t MAX30102 :: check ()':
/Users/…./Library/Arduino15/packages/ATTinyCore/hardware/avr/1.3.3/libraries/Wire/src/Wire.h:122:13: note: candidate 1: uint8_t TwoWire :: requestFrom (int, int )
uint8_t requestFrom (int, int);
^ ~~~~~~~~~~
/Users/…./Library/Arduino15/packages/ATTinyCore/hardware/avr/1.3.3/libraries/Wire/src/Wire.h:119:13: note: candidate 2: uint8_t TwoWire :: requestFrom (uint8_t, uint8_t )
uint8_t requestFrom (uint8_t, uint8_t);
^ ~~~~~~~~~~
More than one library found for "Wire.h"
Used: /Users/…./Library/Arduino15/packages/ATTinyCore/hardware/avr/1.3.3/libraries/Wire
More than one library found for "EEPROM.h"
Used: /Users/…./Library/Arduino15/packages/ATTinyCore/hardware/avr/1.3.3/libraries/EEPROM
exit status 1
'__FlashStringHelper' does not name a type
Lo stesso errore lo si ottiene anche con varie versioni di IDE.
Grazie in anticipo a chi vorrà postare un eventuale soluzione.
Paolo