From da846cd2196e46c629d07dc497cecf58b27d8555 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Sun, 28 May 2023 09:53:44 -0400 Subject: [PATCH] [blocks] battery, dcmotors and onboard speaker --- all_blocks.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/all_blocks.md b/all_blocks.md index 9412af2..7bfa889 100644 --- a/all_blocks.md +++ b/all_blocks.md @@ -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()` -- `` +- Done `` - transpiled: `hub.charger.connected()` -- `(charging current)` +- DONE `(charging current)` - transpiled: `hub.charger.current()` -- `` +- DONE `` - transpiled: `hub.charger.status() == 1` -- `` +- DONE `` - transpiled: `hub.charger.status() == 2` -- `` +- DONE `` - 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