Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
//warning, hand written code, not tested.double t_up = 1.5;double t_down = 20-up;//t_up holds how much the pulse is up, t_down is the differenece of t_up to 20ms (50hz).while(1){outb(255,0x378);wait(t_up);outb(0,0x378);wait(t_down);}