platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
139 stars 105 forks source link

CurieTime library not found in PlatformIO Registry #37

Closed matthewcarroll closed 7 years ago

matthewcarroll commented 7 years ago

On PlatformIO 3.2.1 when building for an Arduino Yun, a warning is given saying the lib CurieTime cannot be found in the PlatformIO registry:

Processing yun (platform: atmelavr, lib_deps: CurieTime, board: yun, framework: arduino)
--------------------------------------------------------------------------------
Warning! Library `CurieTime` has not been found in PlatformIO Registry.

Importing the header and using the functions fails the build. How can the CurieTime lib be imported?

Thanks!

ivankravets commented 7 years ago

This is a built-in library for https://github.com/platformio/platform-intel_arc32

If you want to use it for Atmel AVR, copy this library to "project/lib" folder. It should look like "project/lib/CurieTime/*files"

matthewcarroll commented 7 years ago

The Arduino web editor allows the import #import <Time.h> with a similar interface to the CurieTime lib (e.g. hour(), minute()). Importing it succeeds, but using the functions fails the build. How can the Time library be imported?

Thanks

ivankravets commented 7 years ago

Ahhhh... Just use in platformio.ini

lib_deps = Time