AX 's X means number of the analog port. (Options: A1 / A2 / A3)
Get analog data from analog port.
Mini.AX.getANG()
- A uint16_t result of analog data.
Get digital data from analog port.
Mini.AX.getDIG()
- A boolean result of digital data. (
true/false)
BTNX 's X means number of the Button. (Options: BTN1 / BTN2)
Get Button is clicked or not.
Mini.BTNX.get()
- A boolean result of BTN is clicked. (
true/false)
DX 's X means number of the digital port. (Options: D1 / D2 / D3 / D4)
Get digital data from digital port.
Mini.DX.get()
- A boolean result of digital data. (
true/false)
Get distance from digital port by using ultrasonic sensor.
Mini.DX.US.get()
- A float distance of ultrasonic sensor and object.
Set digital data to digital port.
Mini.DX.set(byte v);
vis a byte which you want to set.
MX 's X means number of the Motor port. (Options: M1 / M2)
Set DC Motor speed.
Mini.MX.set(int speed);
speedis a int of motor speed. (Options: 0~100)
RCX 's X means number of the RC port. (Options: RC1 / RC2 / RC3 / RC4)
Set RC Servo angle.
Mini.RCX.set(int angle);
angleis a int of servo angle. (Options: 0~180)
RGBX 's X means number of the RGB port. (Options: RGB1 / RGB2)
Set LED red color pwm.
Mini.RGBX.setR(uint8_t PWM);
PWMis a uint8_t of red color. (Options: 0~255)
Set LED green color pwm.
Mini.RGBX.setG(uint8_t PWM);
PWMis a uint8_t of green color. (Options: 0~255)
Set LED blue color pwm.
Mini.RGBX.setB(uint8_t PWM);
PWMis a uint8_t of blue color. (Options: 0~255)
Set LED RGB color pwm.
Mini.RGBX.setRGB(uint8_t PWMR, uint8_t PWMG, uint8_t PWMB);
PWMRis a uint8_t of red color. (Options: 0~255)PWMGis a uint8_t of green color. (Options: 0~255)PWMBis a uint8_t of blue color. (Options: 0~255)
Set LED HSV color pwm.
Mini.RGBX.setHSV(int H, float S, float V);
His a int of hue.Sis a float of saturation.Vis a float of value.