Closed koliasa closed 7 months ago
`#include
iBusBM ibus;
void setup() { pinMode(2, INPUT); UnoJoy.begin(); ibus.begin(Serial); }
void loop() { uint16_t data[14]; ibus.readData(data); UnoJoy.X(data[0]); UnoJoy.Y(data[1]); UnoJoy.Z(data[2]); UnoJoy.Zrotate(data[3]); UnoJoy.sliderLeft(data[4]); UnoJoy.sliderRight(data[5]); UnoJoy.button(0, data[6] > 1500); UnoJoy.button(1, data[7] > 1500); UnoJoy.button(2, data[8] > 1500); UnoJoy.button(3, data[9] > 1500); UnoJoy.button(4, data[10] > 1500); UnoJoy.button(5, data[11] > 1500); UnoJoy.button(6, data[12] > 1500); UnoJoy.button(7, data[13] > 1500); delay(10); } err D:\Documents\Arduino\ArduinoNANO3\ArduinoNANO3.ino:2:10: fatal error: iBusBM.h: No such file or directory
err
^~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: iBusBM.h: No such file or directory`
`#include
include
iBusBM ibus;
void setup() { pinMode(2, INPUT); UnoJoy.begin(); ibus.begin(Serial); }
void loop() { uint16_t data[14]; ibus.readData(data); UnoJoy.X(data[0]); UnoJoy.Y(data[1]); UnoJoy.Z(data[2]); UnoJoy.Zrotate(data[3]); UnoJoy.sliderLeft(data[4]); UnoJoy.sliderRight(data[5]); UnoJoy.button(0, data[6] > 1500); UnoJoy.button(1, data[7] > 1500); UnoJoy.button(2, data[8] > 1500); UnoJoy.button(3, data[9] > 1500); UnoJoy.button(4, data[10] > 1500); UnoJoy.button(5, data[11] > 1500); UnoJoy.button(6, data[12] > 1500); UnoJoy.button(7, data[13] > 1500); delay(10); }
err
D:\Documents\Arduino\ArduinoNANO3\ArduinoNANO3.ino:2:10: fatal error: iBusBM.h: No such file or directoryinclude
compilation terminated.
exit status 1
Compilation error: iBusBM.h: No such file or directory`