Hbasic Version 2.11

Hbasic Version 2.11

hBasic Version 2.11 Originally published as Do_Re_Basic! Original Author Paul Laughton, 2011 New commands and functionality added by humpty Edited by Robert A. Rioja ([email protected]), November 9, 2018 hBasic Page 1 of 164 Table of Contents hBasic.......................................................................................................................................................................1 Table of Contents.....................................................................................................................................................2 1 App Commands...................................................................................................................................................15 1.1 App.broadcast <action_sexp>, <data_uri_sexp>, <package_sexp>, <component_sexp>, <mime_type_sexp>, <categories_sexp>, <extras_bptr_nexp>, <flags_nexp>......................................................................................15 1.2 App.start <action_sexp>, <data_uri_sexp>, <package_sexp>, <component_sexp>, <mime_type_sexp>, <categories_sexp>, <extras_bptr_nexp>, <flags_nexp>......................................................................................15 2 Array Commands.................................................................................................................................................17 2.1 Dim Array[<nexp>{, <nexp> } ... ] {, Array[<nexp>{, <nexp> } ... ] } ................................................................17 2.2 UnDim Array[]{, Array[] } ...............................................................................................................................17 2.3 Array.average <Average_nvar>, Array[{<start>,<length>}]............................................................................17 2.4 Array.copy SourceArray[{<start>,<length>}], DestinationArray[{{-}<start_or_extras>}]................................17 2.5 Array.delete Array[]{, Array[]} .......................................................................................................................17 2.6 Array.dims Source[]{, {Dims[]}{, NumDims}}..................................................................................................17 2.7 Array.fill Array[{<start>,<length>}], <exp>.....................................................................................................18 2.8 Array.length <length_nvar>, Array[{<start>,<length>}]..................................................................................18 2.9 Array.load Array[], <exp>, .............................................................................................................................18 2.10 Array.max <Max_nvar> Array[{<start>,<length>}].......................................................................................18 2.11 Array.min <Min_nvar>, Array[{<start>,<length>}].......................................................................................18 2.12 Array.reverse Array[{<start>,<length>}].......................................................................................................18 2.13 Array.search Array[{<start>,<length>}], <value_exp>, <result_nvar>{,<start_nexp>}..................................19 2.14 Array.shuffle Array[{<start>,<length>}]........................................................................................................19 2.15 Array.sort Array[{<start>,<length>}]............................................................................................................19 2.16 Array.std_dev <sd_nvar>, Array[{<start>,<length>}]....................................................................................19 2.17 Array.sum <sum_nvar>, Array[{<start>,<length>}]......................................................................................19 2.18 Array.variance <v_nvar>, Array[{<start>,<length>}].....................................................................................19 3 Audio Commands................................................................................................................................................20 3.1 Audio.isdone <lvar>.......................................................................................................................................20 3.2 Audio.length <length_nvar>, <aft_nexp>.......................................................................................................20 3.3 Audio.load <aft_nvar>, <filename_sexp>.......................................................................................................20 3.4 Audio.loop......................................................................................................................................................20 3.5 Audio.pause...................................................................................................................................................20 3.6 Audio.play <aft_nexp>...................................................................................................................................21 3.7 Audio.position.current <nvar>.......................................................................................................................21 3.8 Audio.position.seek <nexp>...........................................................................................................................21 3.9 Audio.record.start <fn_svar>.........................................................................................................................21 3.10 Audio.record.stop........................................................................................................................................21 3.11 Audio.release <aft_nexp>............................................................................................................................21 3.12 Audio.stop....................................................................................................................................................21 3.13 Audio.volume <left_nexp>, <right_nexp>....................................................................................................21 4 Background Commands.......................................................................................................................................23 4.1 Home.............................................................................................................................................................23 4.2 Background.resume.......................................................................................................................................23 4.3 OnBackground:..............................................................................................................................................23 4.4 WakeLock <code_nexp>{, <flags_nexp>........................................................................................................23 4.5 WifiLock <code_nexp>...................................................................................................................................24 5 Bluetooth Commands..........................................................................................................................................25 5.1 Bt.close...........................................................................................................................................................25 hBasic Page 2 of 164 5.2 Bt.connect {0|1}.............................................................................................................................................25 5.3 Bt.device.name <svar>...................................................................................................................................25 5.4 Bt.disconnect.................................................................................................................................................25 5.5 Bt.onReadReady.resume................................................................................................................................26 5.6 Bt.open {0|1}.................................................................................................................................................26 5.7 Bt.read.bytes <svar>......................................................................................................................................26 5.8 Bt.read.ready <nvar>.....................................................................................................................................26 5.9 Bt.reconnect...................................................................................................................................................26 5.10 Bt.set.UUID <sexp>......................................................................................................................................26 5.11 Bt.status {{<connect_var>}{, <name_svar>}{, <address_svar>}}...................................................................27 5.12 Bt.write {<exp> {,|;}} ...................................................................................................................................27 5.13 OnBtReadReady:..........................................................................................................................................27 6 Bundle Commands...............................................................................................................................................28 6.1 Bundle.clear

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    164 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us