HP Prime QR Code Encoder Program in Python

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 7

  • @KodeurKubik
    @KodeurKubik 11 місяців тому

    I was only searching for a way to draw a pixel with python when I found that video, where do you find the docs of python for the hp prime? Nice video!

    • @CalculatorClique
      @CalculatorClique  11 місяців тому

      The HP Prime Python documentation is severely lacking unfortunately. You can use the Help feature on the calculator itself (or virtual version) to see most of the Python modules, functions and parameters, however, some aren't listed for some reason and the descriptions are very brief.
      I also look at programs others have written to see what functions they use and how.
      Note, there are also lots of bugs in Python. For example, if you check out my FORTH in Python for the HP Prime (ua-cam.com/video/ILMbia3-VZo/v-deo.html) drawing a pixel is done in Python but checking if a pixel is on is done using a PPL call as the Python function that does this is buggy and returns mostly incorrect results.

  • @TizedesCsaba
    @TizedesCsaba Рік тому +1

    "HP Prime requires firmware that supports Python" - could you share a tutorial or information about this issue?! Thanks!

    • @CalculatorClique
      @CalculatorClique  Рік тому

      To load the latest HP Prime firmware you should download and install the latest HP Prime Connectivity Kit (for Windows) and then connect your HP Prime to the PC and you will be asked if you want to upgrade it. Python support has been available for a while now so the latest version includes it.
      Note, the Mac version of the Connectivity Kit has not been upgraded for some time so you will need to use Windows. The Mac version should be updated at some stage.
      See the following for the latest Connectivity Kit download: hpcalcs.com/download/#:~:text=HP%2Drelated%20Programs%20for%20PC,done%20through%20the%20Connectivity%20Kit.
      Don't forget to backup your HP Prime before upgrading.

  • @TheDrAsakura
    @TheDrAsakura Рік тому

    Great contribution, I would like to know how you included an external library to micropython? Can it be done with other libraries?

    • @CalculatorClique
      @CalculatorClique  Рік тому

      Thanks for the feedback - much appreciated 😊.
      To use other modules (your own or 3rd party) you need to create an application folder and place all the relevant files in this folder. A Prime program can access all the files in its own program folder. You can then import from these files as usual. Note, the code may need to be modified to work in MicroPython.

    • @TheDrAsakura
      @TheDrAsakura Рік тому +1

      A pleasure and thank you very much for sharing the information I will be testing it.
      @@CalculatorClique