jacobrosenthal commented on issue #822: Adding int/float easing library
URL: https://github.com/apache/mynewt-core/pull/822#issuecomment-367766045
   Altering pwm_test with
   #include <easing/easing.h>
   #define MAX_VALUE 65535
   #define MAX_STEPS 255
   static volatile int32_t step = 0;
       int32_t eased = cubic_int_out(step++, MAX_STEPS, MAX_VALUE);
       pwm_enable_duty_cycle(pwm, 0, eased);
   Linker can't find math library.
   Jacobs-MacBook-Air:charm jacobrosenthal$ newt run central-nrf52840pdk 0
   Compiling repos/apache-mynewt-core/apps/pwm_test/src/main.c
   Compiling repos/apache-mynewt-core/util/easing/src/easing.c
   Archiving apps_pwm_test.a
   Archiving util_easing.a
 In function `cubic_out':
 undefined reference to `pow'
   collect2: error: ld returned 1 exit status
   Some other newt flag you're using?

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to