[blocks] battery, dcmotors and onboard speaker
This commit is contained in:
parent
2e26b364ec
commit
da846cd219
|
@ -23,7 +23,7 @@ todo: light.animate
|
|||
|
||||
## Hub - Display
|
||||
|
||||
- `set display orientation to (d! side)`
|
||||
- DONE `set display orientation to (d! side)`
|
||||
- transpiled: `hub.display.orientation(side)`
|
||||
|
||||
- DONE `turn display off`
|
||||
|
@ -106,16 +106,16 @@ todo: imu.orientation
|
|||
|
||||
## Hub - Speaker
|
||||
|
||||
- `(volume)`
|
||||
- DONE `(volume)`
|
||||
- transpiled: `hub.speaker.volume()`
|
||||
|
||||
- `set speaker volume to (volume)`
|
||||
- DONE `set speaker volume to (volume)`
|
||||
- transpiled: `hub.speaker.volume(volume)`
|
||||
|
||||
- `play tone (frequency) for (ms) ms`
|
||||
- DONE `play tone (frequency) for (ms) ms`
|
||||
- transpiled: `hub.speaker.beep(frequency, ms)`
|
||||
|
||||
- `start playing tone (frequency)`
|
||||
- DONE `start playing tone (frequency)`
|
||||
- transpiled: `hub.speaker.beep(frequency, -1)`
|
||||
|
||||
todo: speaker.play_notes
|
||||
|
@ -126,25 +126,25 @@ Easy to design though, for late.r
|
|||
|
||||
## Hub - Battery
|
||||
|
||||
- `(battery voltage)`
|
||||
- DONE `(battery voltage)`
|
||||
- transpiled: `hub.battery.voltage()`
|
||||
|
||||
- `(battery current)`
|
||||
- DONE `(battery current)`
|
||||
- transpiled: `hub.battery.current()`
|
||||
|
||||
- `<charger connected?>`
|
||||
- Done `<charger connected?>`
|
||||
- transpiled: `hub.charger.connected()`
|
||||
|
||||
- `(charging current)`
|
||||
- DONE `(charging current)`
|
||||
- transpiled: `hub.charger.current()`
|
||||
|
||||
- `<is charging?>`
|
||||
- DONE `<is charging?>`
|
||||
- transpiled: `hub.charger.status() == 1`
|
||||
|
||||
- `<is charging complete?>`
|
||||
- DONE `<is charging complete?>`
|
||||
- transpiled: `hub.charger.status() == 2`
|
||||
|
||||
- `<is charging stopped?>`
|
||||
- DONE `<is charging stopped?>`
|
||||
- transpiled: `hub.charger.status() == 3`
|
||||
|
||||
## Hub - Control
|
||||
|
@ -179,18 +179,18 @@ todo: system.storage
|
|||
|
||||
## Motors - DC
|
||||
|
||||
- `turn on dc motor (port) at (power) power`
|
||||
- DONE `turn on dc motor (port) at (power) power`
|
||||
- transpiled: `motor.dc(power)`
|
||||
|
||||
- `stop dc motor (port)`
|
||||
- DONE `stop dc motor (port)`
|
||||
- transpiled: `motor.stop()`
|
||||
|
||||
- `set max voltage of dc motor (port) to (voltage)`
|
||||
- DONE `set max voltage of dc motor (port) to (voltage)`
|
||||
- transpiled: `motor.settings(voltage)`
|
||||
- `(max voltage of dc motor (port))`
|
||||
- DONE `(max voltage of dc motor (port))`
|
||||
- transpiled: `motor.settings()[0]`
|
||||
|
||||
- `set positive direction of dc motor (port) to (d! direction)`
|
||||
- DONE `set positive direction of dc motor (port) to (d! direction)`
|
||||
- transpiled: RESET motor variable with the direction
|
||||
|
||||
## Motors
|
||||
|
|
Loading…
Reference in New Issue