drone class
Drone ν΄λμ€ μμ±
μ΄ | μ€ | Default |
flagCheckBackground | μμ λ°μ λ°μ΄ν°λ₯Ό λ°±κ·ΈλΌμ΄λμμ νμΈ | True |
flagShowErrorMessage | μλ¬ λ©μΈμ§ νμ | False |
flagShowLogMessage | λ‘κ·Έ λ©μΈμ§ νμ | False |
flagShowTransferData | μ‘μ λ°μ΄ν° λ°°μ΄ νμ | False |
flagShowReceiveData | μμ λ°μ΄ν° λ°°μ΄ νμ | False |
Drone ν΄λμ€μ public ν¨μ ꡬμ±
μ΄λ¦ | μ€λͺ |
isOpen() | μλ¦¬μΌ ν¬νΈκ° μ΄λ¦° κ²½μ° True λ°ν |
open(portname) | μλ¦¬μΌ ν¬νΈ μ΄κΈ°. ν¬νΈκ° μ΄λ¦° κ²½μ° True λ°ν |
close() | μλ¦¬μΌ ν¬νΈ λ«κΈ° |
makeTransferDataArray(header, data) | μ μ‘ν λ°μ΄ν° λ°μ΄νΈ λ°°μ΄ μμ± |
transfer(header, data) | λ°μ΄ν° μ μ‘(λ΄λΆμμ makeTransferDataArray ν¨μλ₯Ό μ€νν¨) |
check() | μμ λ°μ λ°μ΄ν° νμΈ. λ°μ΄ν°λ₯Ό λ°μ κ²½μ° DataTypeμ λ°ν |
checkDetail() | μμ λ°μ λ°μ΄ν° νμΈ. Headerμ Dataλ₯Ό ννλ‘ λ°ν |
setEventHandler(dataType, eventHandler) | νΉμ νμ μ λ°μ΄ν°λ₯Ό μμ νμ λ νΈμΆν μ¬μ©μ μ§μ ν¨μ λ±λ‘ |
getHeader(dataType) | μ§μ ν νμ μ λ°μ΄ν°μ ν¨κ» λ°μ ν€λ λ°ν |
getData(dataType) | μ§μ ν νμ μ λ°μ΄ν° λ°ν(λ°μ΄ν°κ° μμΌλ©΄ None λ°ν) |
getCount(dataType) | μ§μ ν νμ μ λ°μ΄ν°λ₯Ό λ°μ νμλ₯Ό λ°ν(λ°μ΄ν°κ° μμΌλ©΄ None λ°ν) |
convertByteArrayToString(dataArray) | λ°μ΄νΈ λ°°μ΄μ Hex λ¬Έμμ΄λ‘ λ³κ²½νμ¬ λ°ν |
Drone ν΄λμ€ λ°μ΄ν° μμ μ²λ¦¬λΆ
μ΄λ¦ | μ€λͺ |
_receiving() | λ°μ΄ν° μμ Thread, μμ λ°μ λ°μ΄ν°λ₯Ό λ²νΌμ μ μ₯ |
check() | λ²νΌμ μ μ₯λ λ°μ΄ν°λ₯Ό ν λ°μ΄νΈμ© μ½μ΄ receiverμ μ λ¬. νλμ λ°μ΄ν° λΈλμ λ°μ κ²½μ° _handler()λ₯Ό νΈμΆνμ¬ λ°μ λ°μ΄ν°λ₯Ό νμ±ν΄μ μ μ₯νκ³ dataTypeμ λ°ν. λ°μ λ°μ΄ν°κ° μμΌλ©΄ DataType.None_ λ°ν |
_handler() | ν€λλ₯Ό λ΄λΆμ μ μ₯. λ°μ΄ν°λ νμ±νμ¬ λ΄λΆμ μ μ₯. μ΄λ²€νΈ μ²λ¦¬ ν¨μκ° λ±λ‘λ κ²½μ° ν΄λΉ ν¨μ νΈμΆ |
ν¨μ λͺ©λ‘
μΌλ°
μ΄λ¦ | μ€λͺ |
sendPing | ν μ μ‘ |
sendRequest | λ°μ΄ν° μμ² |
sendPairing | νμ΄λ§ μ€μ |
μ‘°μ’
μ΄λ¦ | μ€λͺ |
sendTakeOff | μ΄λ₯ |
sendLanding | μ°©λ₯ |
sendStop | μ μ§ |
sendControl | λΉν μ‘°μ’ |
sendControlWhile | μ§μ ν μκ° λμ λΉν μ‘°μ’ λͺ λ Ή μ μ‘ |
sendControlPosition16 | μ΄λ(RF) |
sendControlPosition | μ΄λ(UART, USB) |
μ€μ
μ΄λ¦ | μ€λͺ |
sendCommand | λͺ λ Ή μ μ‘ |
sendCommandLightEvent | λͺ λ Ή μ μ‘ + LED μ΄λ²€νΈ |
sendCommandLightEventColor | λͺ λ Ή μ μ‘ + LED μ΄λ²€νΈ(RGB) |
sendCommandLightEventColors | λͺ λ Ή μ μ‘ + LED μ΄λ²€νΈ(νλ νΈ) |
sendModeControlFlight | λΉν μ μ΄ λͺ¨λ λ³κ²½ |
sendHeadless | ν€λλ¦¬μ€ μ€μ |
sendTrimIncDec | Trim ν λ¨κ³μ© λ³κ²½ |
sendTrim | Trim κ°μ μ§μ νμ¬ λ³κ²½ |
sendWeight | Weight μ€μ |
sendLostConnection | μ°κ²°μ΄ λκΈ΄ ν λ°μ μκ° μ€μ |
sendFlightEvent | λΉν μ΄λ²€νΈ μ€ν |
sendClearBias | λ°μ΄μ΄μ€ μ΄κΈ°ν |
sendClearTrim | Trim μ΄κΈ°ν |
sendSetDefault | μ₯μΉ μ€μ μ΄κΈ°ν |
λͺ¨ν°
μ΄λ¦ | μ€λͺ |
sendMotor | λͺ¨ν° λμ μ μ΄ |
sendMotorSingle | λ¨μΌ λͺ¨ν° λμ μ μ΄ |
LED
μ΄λ¦ | μ€λͺ |
sendLightManual | μλ μ μ΄ |
sendLightModeColor | λͺ¨λ μ€μ (RGB) |
sendLightModeColors | λͺ¨λ μ€μ (νλ νΈ) |
sendLightEventColor | μ΄λ²€νΈ μ€μ (RGB) |
sendLightEventColors | μ΄λ²€νΈ μ€μ (νλ νΈ) |
sendLightDefaultColor | κΈ°λ³Έ λͺ¨λ μ€μ (RGB) |
μ‘°μ’
κΈ° LCD λμ€νλ μ΄
μ΄λ¦ | μ€λͺ |
sendDisplayClearAll | μ 체 μ§μ°κΈ° |
sendDisplayClear | μΌλΆλΆ μ§μ°κΈ° |
sendDisplayInvert | μΌλΆλΆ λ°μ |
sendDisplayDrawPoint | μ μ°κΈ° |
sendDisplayDrawLine | μ 그리기 |
sendDisplayDrawRect | μ¬κ°ν 그리기 |
sendDisplayDrawCircle | μ 그리기 |
sendDisplayDrawString | λ¬Έμμ΄ μ°κΈ° |
sendDisplayDrawStringAlign | λ¬Έμμ΄μ μ λ ¬νμ¬ μ°κΈ° |
μ‘°μ’
κΈ° λ²μ
μ΄λ¦ | μ€λͺ |
sendBuzzer | μ리 λ΄κΈ° |
sendBuzzerMute | 묡μ |
sendBuzzerMuteReserve | 묡μ μμ½ |
sendBuzzerScale | μκ³λ₯Ό μ¬μ©νμ¬ μ리 λ΄κΈ° |
sendBuzzerScaleReserve | μκ³λ₯Ό μ¬μ©νμ¬ μ리 λ΄κΈ° μμ½ |
sendBuzzerHz | μ£Όνμλ₯Ό μ¬μ©νμ¬ μ리 λ΄κΈ° |
sendBuzzerHzReserve | μ£Όνμλ₯Ό μ¬μ©νμ¬ μ리 λ΄κΈ° μμ½ |
μ‘°μ’
κΈ° μ§λ
μ΄λ¦ | μ€λͺ |
sendVibrator | μ§λ μ€μ |
sendVibratorReserve | μ§λ μμ½ |
ν¨μ μ€λͺ
sendPing
ν μ μ‘
λ€λ₯Έ μ₯μΉμμ μ°κ²° μνλ₯Ό νμΈν λ μ¬μ©
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
deviceType | DeviceType | μ μ‘ν λμ μ₯μΉ |
sendRequest
λ°μ΄ν° μμ²
μ§μ ν μ₯μΉμ λ°μ΄ν°λ₯Ό μμ²ν λ μ¬μ©
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
deviceType | DeviceType | μ μ‘ν λμ μ₯μΉ |
dataType | DataType | λ°μ΄ν°μ νμ |
sendPairing
νμ΄λ§ μ€μ
μ§μ ν μ₯μΉμ νμ΄λ§ μ€μ μ λ³κ²½ν λ μ¬μ©
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
deviceType | DeviceType | μ μ‘ν λμ μ₯μΉ |
address0 | 0 ~ 65535 | μ₯μΉμ μ£Όμ 0 |
address1 | 0 ~ 65535 | μ₯μΉμ μ£Όμ 1 |
address2 | 0 ~ 65535 | μ₯μΉμ μ£Όμ 2 |
scramble | 0 ~ 127 | μ€ν¬λ¨λΈ |
channel | 0 ~ 81 | μ±λ |
sendTakeOff
μ΄λ₯
λ§μ½ μ΄λ₯ μ€λΉ μνκ° μλλΌλ©΄ μλμΌλ‘ μ΄λ₯ μ€λΉ μνλ₯Ό κ±°μΉκ² λ¨
sendLanding
μ°©λ₯
sendStop
λλ‘ λͺ¨λμ κ΄κ³μμ΄ κ°μ λ‘ μ
sendControl
λΉν μ‘°μ’
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
roll | -100 ~ 100 | Roll |
pitch | -100 ~ 100 | Pitch |
yaw | -100 ~ 100 | Yaw |
throttle | -100 ~ 100 | Throttle |
sendControlWhile
λΉν μ‘°μ’
λΉν λ° μ£Όνμ λͺ¨λ μ¬μ©ν μ μμ΅λλ€. timeMsμ μ§μ ν msλμ μ°μμΌλ‘ μ‘°μ’ λͺ λ Ήμ μ μ‘ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
roll | -100 ~ 100 | Roll |
pitch | -100 ~ 100 | Pitch |
yaw | -100 ~ 100 | Yaw |
throttle | -100 ~ 100 | Throttle |
timeMs | 0 ~ 1,000,000 | λμ μκ°(ms) |
sendControlPosition16
λλ‘ μ΄λ λͺ λ Ή
λͺ¨λ λ³μμ 2byte μ μλ₯Ό μ¬μ©νλ λμ positionκ³Ό velocityμ κ°μ x10μ μ μ©.
λ³μ μ΄λ¦ | νμ | λ²μ | λ¨μ | μ€λͺ |
positionX | Int16 | -100 ~ 100(-10.0 ~ 10.0) | meter x 10 | μ(+), λ€(-) |
positionY | Int16 | -100 ~ 100(-10.0 ~ 10.0) | meter x 10 | μ’(+), μ°(-) |
positionZ | Int16 | -100 ~ 100(-10.0 ~ 10.0) | meter x 10 | μ(+), μλ(-) |
velocity | Int16 | 5 ~ 20(0.5 ~ 2.0) | m/s x 10 | μμΉ μ΄λ μλ |
heading | Int16 | -360 ~ 360 | degree | μ’νμ (+), μ°νμ (-) |
rotationalVelocity | Int16 | 10 ~ 360 | degree/s | μ’μ° νμ μλ |
sendControlPosition
λλ‘ μ΄λ λͺ λ Ή
positionκ³Ό velocityλ μ€μ κ°, headingκ³Ό rotationalVelocityμλ μ μ κ° μ¬μ©
λ³μ μ΄λ¦ | νμ | λ²μ | λ¨μ | μ€λͺ |
positionX | float | -10.0 ~ 10.0 | meter | μ(+), λ€(-) |
positionY | float | -10.0 ~ 10.0 | meter | μ’(+), μ°(-) |
positionZ | float | -10.0 ~ 10.0 | meter | μ(+), μλ(-) |
velocity | float | 0.5 ~ 2.0 | m/s | μμΉ μ΄λ μλ |
heading | Int16 | -360 ~ 360 | degree | μ’νμ (+), μ°νμ (-) |
rotationalVelocity | Int16 | 10 ~ 360 | degree/s | μ’μ° νμ μλ |
sendCommand
λͺ λ Ή μ μ‘
λλ‘ μ λͺ λ Ήμ μ λ¬ν λ μ¬μ©ν©λλ€.
optionμλ κ° νμμ value κ° λλ μ«μ κ°μ λ£μΌμ μΌ ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
commandType | CommandType | λͺ λ Ή νμ |
option | ModeControlFlight | μ΅μ |
FlightEvent | ||
Headless | ||
Trim | ||
UInt8 |
sendCommandLightEvent
λͺ λ Ή + LED μ΄λ²€νΈ
λλ‘ μ λͺ λ Ήμ μ λ¬ν λ μ¬μ©ν©λλ€.
optionμλ κ° νμμ value κ° λλ μ«μ κ°μ λ£μΌμ μΌ ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
commandType | CommandType | λͺ λ Ή νμ |
option | ModeControlFlight | μ΅μ |
FlightEvent | ||
Headless | ||
Trim | ||
UInt8 | ||
lightEvent | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
repeat | 0 ~ 255 | λ°λ³΅ νμ |
sendCommandLightEventColor
λͺ λ Ή + LED μ΄λ²€νΈ(RGB)
λλ‘ μ λͺ λ Ήμ μ λ¬ν λ μ¬μ©ν©λλ€.
optionμλ κ° νμμ value κ° λλ μ«μ κ°μ λ£μΌμ μΌ ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
commandType | CommandType | λͺ λ Ή νμ |
option | ModeControlFlight | μ΅μ |
FlightEvent | ||
Headless | ||
Trim | ||
UInt8 | ||
lightEvent | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
repeat | 0 ~ 255 | λ°λ³΅ νμ |
r | 0 ~ 255 | Red |
g | 0 ~ 255 | Green |
b | 0 ~ 255 | Blue |
sendCommandLightEventColors
λͺ λ Ή + LED μ΄λ²€νΈ(Palette)
λλ‘ μ λͺ λ Ήμ μ λ¬ν λ μ¬μ©ν©λλ€.
optionμλ κ° νμμ value κ° λλ μ«μ κ°μ λ£μΌμ μΌ ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
commandType | CommandType | λͺ λ Ή νμ |
option | ModeControlFlight | μ΅μ |
FlightEvent | ||
Headless | ||
Trim | ||
UInt8 | ||
lightEvent | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
repeat | 0 ~ 255 | λ°λ³΅ νμ |
colors | Colors | μμ νλ νΈ μΈλ±μ€ |
sendModeControlFlight
λΉν μ μ΄ λͺ¨λ μ€μ
λλ‘ λΉν μ μ΄ λͺ¨λλ₯Ό λ³κ²½ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
modeControlFlight | ModeControlFlight | λΉν μ μ΄ λͺ¨λ |
sendHeadless
Headless μ€μ
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
headless | Headless | Headless μ€μ |
sendTrimIncDec
Trim μ€μ
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
trimIncDec | TrimIncDec | νΈλ¦Ό μ€μ |
sendTrim
λΉν Trim μ€μ
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
roll | -200 ~ 200 | Roll |
pitch | -200 ~ 200 | Pitch |
yaw | -200 ~ 200 | Yaw |
throttle | -200 ~ 200 | Throttle |
sendWeight
무κ²
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
weight | Weight | λ¬΄κ² |
sendLostConnection
ν΅μ μ°κ²°μ΄ λκΈ΄ ν λ°μ μκ° μ€μ
λ§μ§λ§μΌλ‘ λΉν μ΄λ²€νΈ λλ μ‘°μ’ λͺ λ Ήμ 보λλ μ₯μΉμμ μ°κ²°μ΄ λμ΄μ§ νμ μ§μ ν μκ°μ΄ κ²½κ³Όνλ©΄ ν΄λΉ λͺ λ Ήμ μ€ν. μκ°μ 0μΌλ‘ μ€μ ν κ²½μ° ν΄λΉ λͺ λ Ήμ μ€ννμ§ μμ. μκ° λ¨μλ ms
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
timeNeutral | 0 ~ 65,535 | μ‘°μ’ μ€λ¦½ |
timeLanding | 0 ~ 65,535 | μ°©λ₯ |
timeStop | 0 ~ 4,294,967,295 | μ μ§ |
sendFlightEvent
λΉν μ΄λ²€νΈ μ€ν
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
flightEvent | FlightEvent | λΉν μ΄λ²€νΈ |
sendClearBias
Accel, Gyro Bias μ΄κΈ°ν
sendClearTrim
λΉν, μ£Όν Trim μ΄κΈ°ν
sendSetDefault
μ₯μΉ μ€μ μ΄κΈ°ν
μ§μ ν μ₯μΉμ μ€μ μ μ΄κΈ°ν ν¨
sendMotor
4κ°μ λͺ¨ν°λ₯Ό 미리 μ§μ λ λ°©ν₯μΌλ‘ νμ
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
motor0 | 0 ~ 4095 | μΌμͺ½ μ λͺ¨ν° μλ μ§μ |
motor1 | 0 ~ 4095 | μ€λ₯Έμͺ½ μ λͺ¨ν° μλ μ§μ |
motor2 | 0 ~ 4095 | μ€λ₯Έμͺ½ λ€ λͺ¨ν° μλ μ§μ |
motor3 | 0 ~ 4095 | μΌμͺ½ λ€ λͺ¨ν° μλ μ§μ |
sendMotorSingle
1κ°μ λͺ¨ν°λ₯Ό νμ λ°©ν₯μ μ§μ νμ¬ λμ
targetμ λ€μ΄κ°λ κ°μ 0~3μ λλ€. λͺ¨ν°μ μμλ μΌμͺ½ μ λͺ¨ν°λΆν° μκ³λ°©ν₯μ λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
target | 0 ~ 3 | μ μ΄ν λͺ¨ν°μ λ²νΈ |
rotation | Rotation | λͺ¨ν°μ νμ λ°©ν₯ |
value | 0 ~ 4095 | λͺ¨ν°μ μλ |
sendLightManual
LED μλ μ μ΄
flagsμλ LightFlagsDrone, LightFlagsControllerμ value κ°μ μ¬μ©νκ±°λ μ§μ νλκ·Έμ ν΄λΉνλ λΉνΈλ₯Ό μ ννμλ©΄ λ©λλ€.
brightnessλ κ°μ 0μΌ λ κΊΌμ§λ©° κ°μ΄ 컀μ§μλ‘ λ°μμ§λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
deviceType | DeviceType | LEDλ₯Ό μ μ΄ν μ₯μΉ |
flags | 0b00000000 ~ 0b11111111 | LED νλκ·Έ |
brightness | 0 ~ 255 | λ°κΈ° |
sendLightModeColor
LED λͺ¨λ μ€μ (RGB)
lightMode λ³μμλ LightModeDrone, LightModeControllerμ value κ°μ μ¬μ©ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
lightMode | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
r | 0 ~ 255 | Red |
g | 0 ~ 255 | Green |
b | 0 ~ 255 | Blue |
sendLightModeColors
LED λͺ¨λ μ€μ (Palette)
lightMode λ³μμλ LightModeDrone, LightModeControllerμ value κ°μ μ¬μ©ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
lightMode | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
colors | Colors | μμ νλ νΈ μΈλ±μ€ |
sendLightEventColor
LED μ΄λ²€νΈ μ€μ (RGB)
lightEvent λ³μμλ LightModeDrone, LightModeControllerμ value κ°μ μ¬μ©ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
lightEvent | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
repeat | 0 ~ 255 | λ°λ³΅ νμ |
r | 0 ~ 255 | Red |
g | 0 ~ 255 | Green |
b | 0 ~ 255 | Blue |
sendLightEventColors
LED μ΄λ²€νΈ μ€μ (Palette)
lightEvent λ³μμλ LightModeDrone, LightModeControllerμ value κ°μ μ¬μ©ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
lightEvent | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
repeat | 0 ~ 255 | λ°λ³΅ νμ |
colors | Colors | μμ νλ νΈ μΈλ±μ€ |
sendLightDefaultColor
LED κΈ°λ³Έ λͺ¨λ μ€μ (RGB)
lightMode λ³μμλ LightModeDrone, LightModeControllerμ value κ°μ μ¬μ©ν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
lightMode | UInt8 | LED λμ λͺ¨λ |
interval | 0 ~ 65535 | λ΄λΆ λ°κΈ° μ μ΄ ν¨μ νΈμΆ μ£ΌκΈ° |
r | 0 ~ 255 | Red |
g | 0 ~ 255 | Green |
b | 0 ~ 255 | Blue |
sendDisplayClearAll
νλ©΄ μ 체 μ§μ°κΈ°
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
pixel | DisplayPixel | μ±μΈ μμ |
sendDisplayClear
νλ©΄ μΌλΆ μ§μ°κΈ°
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x | -2000 ~ 2000 | XμΆ μμ μμΉ |
y | -2000 ~ 2000 | YμΆ μμ μμΉ |
width | -2000 ~ 2000 | λλΉ |
height | -2000 ~ 2000 | λμ΄ |
pixel | DisplayPixel | μ±μΈ μμ |
sendDisplayInvert
νλ©΄ μΌλΆ λ°μ
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x | -2000 ~ 2000 | XμΆ μμ μμΉ |
y | -2000 ~ 2000 | YμΆ μμ μμΉ |
width | -2000 ~ 2000 | λλΉ |
height | -2000 ~ 2000 | λμ΄ |
sendDisplayDrawPoint
μ μ°κΈ°
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x | -2000 ~ 2000 | XμΆ μμΉ |
y | -2000 ~ 2000 | YμΆ μμΉ |
pixel | DisplayPixel | μ μμ |
sendDisplayDrawLine
μ 그리기
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x1 | -2000 ~ 2000 | XμΆ μμ μμΉ |
y1 | -2000 ~ 2000 | YμΆ μμ μμΉ |
x2 | -2000 ~ 2000 | XμΆ λ μμΉ |
y2 | -2000 ~ 2000 | YμΆ λ μμΉ |
pixel | DisplayPixel | μ μμ |
line | DisplayLine | μ νν |
sendDisplayDrawRect
μ¬κ°ν 그리기
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x | -2000 ~ 2000 | XμΆ μμ μμΉ |
y | -2000 ~ 2000 | YμΆ μμ μμΉ |
width | -2000 ~ 2000 | λλΉ |
height | -2000 ~ 2000 | λμ΄ |
pixel | DisplayPixel | μμ |
flagFill | Bool | TrueμΈ κ²½μ° λ΄λΆλ₯Ό μ±μ |
line | DisplayLine | μ νν |
sendDisplayDrawCircle
μ 그리기
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x | -2000 ~ 2000 | XμΆ μ€μ¬μ μμΉ |
y | -2000 ~ 2000 | YμΆ μ€μ¬μ μμΉ |
radius | -2000 ~ 2000 | λ°μ§λ¦ |
pixel | DisplayPixel | μμ |
flagFill | Bool | TrueμΈ κ²½μ° λ΄λΆλ₯Ό μ±μ |
sendDisplayDrawString
λ¬Έμμ΄ κ·Έλ¦¬κΈ°
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x | -2000 ~ 2000 | XμΆ μμΉ |
y | -2000 ~ 2000 | YμΆ μμΉ |
font | DisplayFont | ν°νΈ |
pixel | DisplayPixel | μμ |
message | ASCII String(30μ μ΄ν) | νμν λ¬Έμμ΄ |
sendDisplayDrawStringAlign
λ¬Έμμ΄ κ·Έλ¦¬κΈ°
x_startμ x_end μ¬μ΄μ μ§μ ν μμΉλ‘ λ¬Έμμ΄μ μ λ ¬νμ¬ νμν©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
x_start | -2000 ~ 2000 | XμΆ μμ μμΉ |
x_end | -2000 ~ 2000 | XμΆ λ μμΉ |
y | -2000 ~ 2000 | YμΆ μμΉ |
align | DisplayAlign | μ λ ¬ |
font | DisplayFont | ν°νΈ |
pixel | DisplayPixel | μμ |
message | ASCII String(30μ μ΄ν) | νμν λ¬Έμμ΄ |
sendBuzzer
λ²μ μλ
BuzzerModeκ° BuzzerMode.Scaleμ΄κ±°λ BuzzerMode.ScaleReserveμΈ κ²½μ° valueμλ BuzzerScaleμ value κ°μ μ¬μ©νμλ©΄ λ©λλ€.
BuzzerModeκ° BuzzerMode.Hzμ΄κ±°λ BuzzerMode.HzReserveμΈ κ²½μ° valueμλ Hz κ°μ μ¬μ©νμλ©΄ λ©λλ€.
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
mode | BuzzerMode | λ²μ λμ λͺ¨λ |
value | 0 ~ 8000 | Scale κ° λλ Hz κ° |
time | 0 ~ 65,535 | μ리λ₯Ό μ§μν μκ°(ms) |
sendBuzzerMute
λ²μ 무μ
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
time | 0 ~ 65,535 | μ리λ₯Ό μ§μν μκ°(ms) |
sendBuzzerMuteReserve
λ²μ 무μ μμ½
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
time | 0 ~ 65,535 | μ리λ₯Ό μ§μν μκ°(ms) |
sendBuzzerScale
λ²μ μκ³ μ¬μ©νμ¬ μ리λ΄κΈ°
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
scale | BuzzerScale | Scale |
time | 0 ~ 65,535 | μ리λ₯Ό μ§μν μκ°(ms) |
sendBuzzerScaleReserve
λ²μ μκ³ μ¬μ©νμ¬ μ리λ΄κΈ° μμ½
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
scale | BuzzerScale | Scale |
time | 0 ~ 65,535 | μ리λ₯Ό μ§μν μκ°(ms) |
sendBuzzerHz
λ²μ μ£Όνμ μ¬μ©νμ¬ μ리λ΄κΈ°
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
hz | 0 ~ 8,000 | μ£Όνμ κ° |
time | 0 ~ 65,535 | μ리λ₯Ό μ§μν μκ°(ms) |
sendBuzzerHzReserve
λ²μ μ£Όνμ μ¬μ©νμ¬ μ리λ΄κΈ° μμ½
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
hz | 0 ~ 8,000 | μ£Όνμ κ° |
time | 0 ~ 65,535 | μ리λ₯Ό μ§μν μκ°(ms) |
sendVibrator
μ§λ
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
on | 0 ~ 65,535 | μ§λμ μΌ μκ° |
off | 0 ~ 65,535 | μ§λμ λ μκ° |
total | 0 ~ 65,535 | μ 체 λμ μκ° |
sendVibratorReserve
μ§λ μμ½
λ³μ μ΄λ¦ | νμ λλ λ²μ | μ€λͺ |
on | 0 ~ 65,535 | μ§λμ μΌ μκ° |
off | 0 ~ 65,535 | μ§λμ λ μκ° |
total | 0 ~ 65,535 | μ 체 λμ μκ° |
Last updated