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 68 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1770866
add int calculator
Dec 3, 2022
e0cd8f6
Fix comparison
minacode Dec 4, 2022
ba9d477
add offset
Dec 4, 2022
1aec3af
added fixed point numbers, pow is still broken
Dec 4, 2022
9d4ad4e
added pow with floats
Dec 4, 2022
f2e6e83
added calculator symbol
Dec 5, 2022
7e7aa6c
fixes and cleanup
Dec 5, 2022
fed59f1
make buttons bigger
Dec 7, 2022
5af0a34
fixed number displays
Dec 7, 2022
cacf107
format
Dec 8, 2022
21e2427
changed long int to int64_t
Dec 9, 2022
37b0842
change float to double
Dec 9, 2022
0957bdc
fixed crashes
Dec 19, 2022
64fb4f9
WIP: refactored the prints
Dec 19, 2022
8c10adc
set value bounds and checks
Dec 20, 2022
e46a1ca
add backspace button
Dec 20, 2022
7a7ffca
WIP: = repeats calculation
Dec 20, 2022
3fce445
format
Dec 20, 2022
4096da4
fix offset bug from backspace
Dec 20, 2022
0048a8b
fix backspace for zeros
Dec 20, 2022
b64787a
colored current button
Dec 21, 2022
5433363
format
Dec 21, 2022
852c1de
save changes
Dec 31, 2022
477ad1e
fixed various issues
Dec 31, 2022
b9ede11
reset value after copy to result
Dec 31, 2022
c36ad92
format
Dec 31, 2022
d4ea28c
format and tidy
Dec 31, 2022
25cd03e
add power operation toggle
Jan 1, 2023
e98cd49
checked buttons cleanup
Jan 5, 2023
4cd0ec7
removed swiping
Jan 5, 2023
89c6c2f
add better colors
Jan 5, 2023
edf9990
Remove power operation in calculator app
FintasticMan Jan 8, 2023
4a74e49
format
Jan 9, 2023
041369b
fixed negative number input
Jan 29, 2023
f116a3e
changes
Mar 4, 2023
19eb8a9
fix after rebase
Mar 4, 2023
44d1d7d
format
Mar 4, 2023
a3a557f
fixed display of negative numbers smaller than 0
Mar 4, 2023
2502200
only remove the operator if the value is zero
minacode Nov 12, 2023
d356c40
lower maximum number size and number of digits
Nov 12, 2023
e609983
update to optional apps
Dec 10, 2023
10346ef
fix build and format warnings
Dec 10, 2023
b734baf
reduce heap size
Jan 13, 2024
ab7ceb9
implement new CMake interface
Jan 13, 2024
0f65f48
set heap size to 39
Jul 16, 2024
d2c178e
add missing icon
Jul 16, 2024
accd666
remove TODO
Jul 16, 2024
46efadb
Merge branch 'main' into simple-calculator
minacode Aug 30, 2024
0d54f1e
add const
Aug 31, 2024
dcacb9c
add constexpr
Sep 1, 2024
eb160ee
Remove const
minacode Sep 3, 2024
fb03cf6
Merge branch 'main' into simple-calculator
minacode Oct 3, 2024
d8c2b99
Merge branch 'main' into simple-calculator
minacode Nov 1, 2024
8c47941
Merge branch 'main' into simple-calculator
minacode Nov 24, 2024
8c30a35
fix compile error
Nov 24, 2024
76c4bda
fix typo
minacode Nov 24, 2024
9a97e6c
rearrange font symbols
Nov 24, 2024
7be0251
explain number of digits
Nov 24, 2024
0e1893f
remove logging
Nov 24, 2024
9e3c665
do not remove dice icon
minacode Nov 24, 2024
f871487
Merge branch 'main' into simple-calculator
minacode Dec 7, 2024
acf38e9
Specify auto types
minacode Dec 7, 2024
9cb3b65
Change variables to camel case
minacode Dec 7, 2024
3705dc9
Rename equalSignPressed to equalSignPressedBefore
minacode Dec 7, 2024
1cb1a8b
Update header
minacode Dec 7, 2024
a3320b1
fix constexpr position
minacode Dec 9, 2024
aca8a1d
Merge branch 'main' into simple-calculator
minacode Dec 9, 2024
98b84c8
Merge branch 'main' into simple-calculator
minacode Dec 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ list(APPEND SOURCE_FILES
displayapp/screens/Metronome.cpp
displayapp/screens/Motion.cpp
displayapp/screens/Weather.cpp
displayapp/screens/Calculator.cpp
displayapp/screens/FirmwareValidation.cpp
displayapp/screens/ApplicationList.cpp
displayapp/screens/Notifications.cpp
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "displayapp/screens/Weather.h"
#include "displayapp/screens/PassKey.h"
#include "displayapp/screens/Error.h"
#include "displayapp/screens/Calculator.h"

#include "drivers/Cst816s.h"
#include "drivers/St7789.h"
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/apps/Apps.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace Pinetime {
StopWatch,
Metronome,
Motion,
Calculator,
Steps,
Dice,
Weather,
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ else ()
set(DEFAULT_USER_APP_TYPES "${DEFAULT_USER_APP_TYPES}, Apps::Dice")
set(DEFAULT_USER_APP_TYPES "${DEFAULT_USER_APP_TYPES}, Apps::Metronome")
set(DEFAULT_USER_APP_TYPES "${DEFAULT_USER_APP_TYPES}, Apps::Navigation")
set(DEFAULT_USER_APP_TYPES "${DEFAULT_USER_APP_TYPES}, Apps::Calculator")
set(DEFAULT_USER_APP_TYPES "${DEFAULT_USER_APP_TYPES}, Apps::Weather")
#set(DEFAULT_USER_APP_TYPES "${DEFAULT_USER_APP_TYPES}, Apps::Motion")
set(USERAPP_TYPES "${DEFAULT_USER_APP_TYPES}" CACHE STRING "List of user apps to build into the firmware")
Expand Down
2 changes: 1 addition & 1 deletion src/displayapp/fonts/fonts.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
{
"file": "FontAwesome5-Solid+Brands+Regular.woff",
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf06e, 0xf015, 0xf00c, 0xf0f3, 0xf522, 0xf743"
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf06e, 0xf015, 0xf00c, 0xf0f3, 0xf522, 0xf743, 0xf1ec, 0xf55a"
}
],
"bpp": 1,
Expand Down
Loading
Loading