Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple calculator #1483

Open
wants to merge 52 commits into
base: main
Choose a base branch
from
Open

Commits on Jul 16, 2024

  1. add int calculator

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    1770866 View commit details
    Browse the repository at this point in the history
  2. Fix comparison

    minacode authored and minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e0cd8f6 View commit details
    Browse the repository at this point in the history
  3. add offset

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    ba9d477 View commit details
    Browse the repository at this point in the history
  4. added fixed point numbers, pow is still broken

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    1aec3af View commit details
    Browse the repository at this point in the history
  5. added pow with floats

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    9d4ad4e View commit details
    Browse the repository at this point in the history
  6. added calculator symbol

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    f2e6e83 View commit details
    Browse the repository at this point in the history
  7. fixes and cleanup

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    7e7aa6c View commit details
    Browse the repository at this point in the history
  8. make buttons bigger

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    fed59f1 View commit details
    Browse the repository at this point in the history
  9. fixed number displays

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5af0a34 View commit details
    Browse the repository at this point in the history
  10. format

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    cacf107 View commit details
    Browse the repository at this point in the history
  11. changed long int to int64_t

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    21e2427 View commit details
    Browse the repository at this point in the history
  12. change float to double

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    37b0842 View commit details
    Browse the repository at this point in the history
  13. fixed crashes

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0957bdc View commit details
    Browse the repository at this point in the history
  14. WIP: refactored the prints

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    64fb4f9 View commit details
    Browse the repository at this point in the history
  15. set value bounds and checks

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    8c10adc View commit details
    Browse the repository at this point in the history
  16. add backspace button

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e46a1ca View commit details
    Browse the repository at this point in the history
  17. WIP: = repeats calculation

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    7a7ffca View commit details
    Browse the repository at this point in the history
  18. format

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    3fce445 View commit details
    Browse the repository at this point in the history
  19. fix offset bug from backspace

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4096da4 View commit details
    Browse the repository at this point in the history
  20. fix backspace for zeros

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0048a8b View commit details
    Browse the repository at this point in the history
  21. colored current button

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    b64787a View commit details
    Browse the repository at this point in the history
  22. format

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5433363 View commit details
    Browse the repository at this point in the history
  23. save changes

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    852c1de View commit details
    Browse the repository at this point in the history
  24. fixed various issues

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    477ad1e View commit details
    Browse the repository at this point in the history
  25. reset value after copy to result

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    b9ede11 View commit details
    Browse the repository at this point in the history
  26. format

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    c36ad92 View commit details
    Browse the repository at this point in the history
  27. format and tidy

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d4ea28c View commit details
    Browse the repository at this point in the history
  28. add power operation toggle

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    25cd03e View commit details
    Browse the repository at this point in the history
  29. checked buttons cleanup

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e98cd49 View commit details
    Browse the repository at this point in the history
  30. removed swiping

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4cd0ec7 View commit details
    Browse the repository at this point in the history
  31. add better colors

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    89c6c2f View commit details
    Browse the repository at this point in the history
  32. Remove power operation in calculator app

    Also shuffles bottom row around a bit, and adds a unary minus button.
    Also fixes issue where the colours on the operator buttons aren't wiped
    when the backspace button is pressed.
    FintasticMan authored and minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    edf9990 View commit details
    Browse the repository at this point in the history
  33. format

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4a74e49 View commit details
    Browse the repository at this point in the history
  34. fixed negative number input

    Instead of always adding the new digit it now gets multipled with a sign, based on whether value is negative or not. Thus, the addition becomes a subtraction for negative numbers.
    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    041369b View commit details
    Browse the repository at this point in the history
  35. changes

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    f116a3e View commit details
    Browse the repository at this point in the history
  36. fix after rebase

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    19eb8a9 View commit details
    Browse the repository at this point in the history
  37. format

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    44d1d7d View commit details
    Browse the repository at this point in the history
  38. fixed display of negative numbers smaller than 0

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    a3a557f View commit details
    Browse the repository at this point in the history
  39. only remove the operator if the value is zero

    Co-authored-by: SuIông N. <[email protected]>
    2 people authored and minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    2502200 View commit details
    Browse the repository at this point in the history
  40. lower maximum number size and number of digits

    This is necessary to ensure correct calculations. Themaximum int64 has 19 digits. Therefore, 18 digits are safe to use. But in order to calculate exact multiplication we need twice the number of digits after the comma, so I decided to go with 12 digits before the comman and 3 after it.
    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d356c40 View commit details
    Browse the repository at this point in the history
  41. update to optional apps

    This commit updates the codebase to use the new interface for compile-time optional apps.
    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e609983 View commit details
    Browse the repository at this point in the history
  42. fix build and format warnings

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    10346ef View commit details
    Browse the repository at this point in the history
  43. reduce heap size

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    b734baf View commit details
    Browse the repository at this point in the history
  44. implement new CMake interface

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    ab7ceb9 View commit details
    Browse the repository at this point in the history
  45. set heap size to 39

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0f65f48 View commit details
    Browse the repository at this point in the history
  46. add missing icon

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d2c178e View commit details
    Browse the repository at this point in the history
  47. remove TODO

    minacode committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    accd666 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Configuration menu
    Copy the full SHA
    46efadb View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2024

  1. add const

    I dont 100% understand, how it works, but this seems to reduce the amount of needed memory, such that we do not have to reduce the size in the FreeRTOS config.
    minacode committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    0d54f1e View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2024

  1. add constexpr

    minacode committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    dcacb9c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Remove const

    Because it is redundant
    minacode authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    eb160ee View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    fb03cf6 View commit details
    Browse the repository at this point in the history