Somewhat of a noob at copying in libraries and other code beside the example sketches. I thought I had followed the instructions but am getting the errors below when I attempt to compile the example4351 sketch. Changed my username to xxxxx but other than that just copy/pasted the text from the Arduino IDE.
Any help would be greatly appreciated.
Arduino: 1.8.16 (Mac OS X), Board: "Adafruit Feather M4 Express (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"
/Users/xxxxx/Documents/Arduino/libraries/adf4351-master/src/adf4351.cpp: In constructor 'ADF4351::ADF4351(byte, uint8_t, long unsigned int, uint8_t)':
/Users/xxxxx/Documents/Arduino/libraries/adf4351-master/src/adf4351.cpp:94:37: error: invalid conversion from 'uint8_t' {aka 'unsigned char'} to 'BitOrder' [-fpermissive]
94 | spi_settings = SPISettings(speed, order, mode) ;
| ^~~~~
| |
| uint8_t {aka unsigned char}
In file included from /Users/xxxxx/Documents/Arduino/libraries/adf4351-master/src/adf4351.h:12,
from /Users/xxxxx/Documents/Arduino/libraries/adf4351-master/src/adf4351.cpp:51:
/Users/xxxxx/Library/Arduino15/packages/adafruit/hardware/samd/1.7.5/libraries/SPI/SPI.h:66:40: note: initializing argument 2 of 'SPISettings::SPISettings(uint32_t, BitOrder, uint8_t)'
66 | SPISettings(uint32_t clock, BitOrder bitOrder, uint8_t dataMode) {
| ~~~~~~~~~^~~~~~~~
/Users/xxxxx/Documents/Arduino/libraries/adf4351-master/src/adf4351.cpp: In member function 'int ADF4351::setf(uint32_t)':
/Users/xxxxx/Documents/Arduino/libraries/adf4351-master/src/adf4351.cpp:156:3: error: 'dtostrf' was not declared in this scope
156 | dtostrf(PFDFreq, cntdigits + 8 , 3, tmpstr) ;
| ^~~~~~~
exit status 1
Error compiling for board Adafruit Feather M4 Express (SAMD51).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.