Пн май 29, 2017 09:52:37
Сб июн 17, 2017 08:11:56
Сб июн 17, 2017 09:08:57
из документации по avr-libc. Вы учитываете что дефолтная реализация stdio не поддерживает дробные числа?Since the full implementation of all the mentioned features becomes fairly large, three different flavours of vfprintf() can be selected using linker options. The default vfprintf() implements all the mentioned functionality except floating point conversions. A minimized version of vfprintf() is available that only implements the very basic integer and string conversion facilities, but only the # additional option can be specified using conversion flags (these flags are parsed correctly from the format specification, but then simply ignored). This version can be requested using the following compiler options:
- Код:
-Wl,-u,vfprintf -lprintf_min
If the full functionality including the floating point conversions is required, the following options should be used:
- Код:
-Wl,-u,vfprintf -lprintf_flt -lm
Сб июн 17, 2017 16:00:02
Ср июн 21, 2017 13:43:30
Вс июл 02, 2017 20:54:58
Вс июл 02, 2017 21:09:28
Это зря конечноVaha писал(а):как-бы ошибки исключаю
Пн июл 03, 2017 04:31:36
Пн июл 03, 2017 11:34:41
Пн июл 03, 2017 12:08:07
Пн июл 03, 2017 12:50:55
Пн июл 03, 2017 18:55:42
Ср июл 05, 2017 19:37:50
Пн июл 24, 2017 21:12:37
Вт июл 25, 2017 06:42:47
Чт июл 27, 2017 21:00:36
Пн авг 28, 2017 14:26:14
#define F_CPU 8000000
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRD = 0xFF;
PORTD = 0b00000000;
while(1)
{
PORTD |= (1<<(PORTD0));
_delay_ms(500);
PORTD &= ~(1<<(PORTD0));
_delay_ms(500);
}
}
Пн авг 28, 2017 15:22:52
Пн авг 28, 2017 16:38:40
Вс сен 24, 2017 14:45:51