What is causing the fatal error: MCP4725.h in my Arduino code?

  • Thread starter Thread starter Nate Duong
  • Start date Start date
  • Tags Tags
    Error
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Nate Duong
Messages
125
Reaction score
4
Dear all,

I am working on Arduino and try to upload to Teensy, but when I uploaded, I had a problem with this message,

"Interface22.ino:32:21: fatal error: MCP4725.h: No such file or directory
compilation terminated.
Error compiling"Could you please help for the reason and how to solve this problem?

Thank you very much,



Nate Duong.
 
Physics news on Phys.org
Something in your program is referencing an MCP4725 board, and the MCP4725.h file describes its addresses, function, etc.

I don't know if there is an explicit include in your code, or whether it is being determined by the compiler. You need to add that file or eliminate the code that requires it.