Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "math.h"
- vALSstartReadChannel(0);
- uint16 ch0 = u16ALSreadChannelResult();
- vALSstartReadChannel(1);
- uint16 ch1 = u16ALSreadChannelResult();
- uint16 R = ch1/(ch0 - ch1);
- u8LightIntensity = (uint8) 0.39*(ch0-ch1)*(exp(0.181*R*R));
- Intensity.o: In function _Intensity': Intensity.c:(.text.Intensity+0x3d): undefined reference to _exp'
- make: *** [/cygdrive/c/Users/Shagiea/workspace/ClimaCon-PIR-AQS- MOTOR/Binary/0x11111111s_DeviceBulb_DR1175_JN5148J01.elf] Error 1 ClimaCon-PIR-AQS-MOTOR line 0 C/C++ Problem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement