maoterk
Newbie level 5
Hi, i'm new at programming and i tried this easy code for flashing leds with dspic33e usb starter kit, but it seems to take around 5 seconds to flash rather than 1
Any suggestions?
Any suggestions?
Code:
#include <33EP512MU810.h>
#use delay(clock=40000000)
#byte PORTD=0xF81
void main() {
set_tris_d(0x00);
WHILE (TRUE){
output_high(PIN_D2);
delay_ms(1000);
output_low(PIN_D2);
delay_ms(1000);
}}