Code: Select all
uint8_t _heading = 0;
float _x = 256 / 2;
float _y = 100.0;
float sinArray[360] = { 0, 0.02, 0.03,.... };
float cosArray[360] = { 1, 1, 1, 1, 1, 1,....... };
void move(uint8_t seconds) {
for (uint s = 0; s < seconds * 10; s++) {
_x += sinArray[_heading];
_y += cosArray[_heading];
putPixel(15, (uint8_t)_x, (uint8_t)_y);
}
}
main.c:8672: error: undefined symbol: ___fsadd
^---- ___fsadd
main.c:8694: error: undefined symbol: ___fsadd
^---- ___fsadd
main.c:8704: error: undefined symbol: ___fs2uchar_callee
^---- ___fs2uchar_callee
main.c:8711: error: undefined symbol: ___fs2uchar_callee
^---- ___fs2uchar_callee
main.c:8756: error: undefined symbol: ___fs2uchar_callee
^---- ___fs2uchar_callee
main.c:8763: error: undefined symbol: ___fs2uchar_callee
^---- ___fs2uchar_callee