| | Hi folks a question about ic.
|
| Hi, is there some kind of integer to float call in ic? I am trying to write a test servo routine that takes the knob() value and turns the servo to that number of degrees using servo_deg() which takes a float. Any ideas? My board was just recenly (...) (28 years ago, 1-Feb-97, to lugnet.robotics.handyboard)
| | | | Re: Hi folks a question about ic.
|
| (...) In regular C, you just ask for what you want by declaring the convert in a statement like... Knob_value = knob(); How_much = float(knob_value); servo_deg(How_much); or save a variable with... Knob_value = knob; servo_deg(float(Knob_value)); (...) (28 years ago, 2-Feb-97, to lugnet.robotics.handyboard)
| |