Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
18733c9
Function generator should not clear on activation to prevent glitchiness
kohrar Sep 29, 2019
f8b05a8
Fixed wrong reference to on/off image size
kohrar Sep 29, 2019
adda576
Added POWER_OFF_VISIBLE and POWER_COLORED options
kohrar Sep 29, 2019
2626265
Merge branch 'color_power_button' of https://git.steamr.com/others/op…
kohrar Sep 29, 2019
d732ec8
Added uncolored graphics
kohrar Sep 29, 2019
66cc497
Added nerd font
kohrar Sep 29, 2019
6c819bf
gen_lookup.py will also include 'W'
kohrar Sep 29, 2019
1088202
Adding the compiled fonts with missing 'w'
kohrar Sep 29, 2019
ff0f0f7
Merge branch 'nerdfont' of https://git.steamr.com/others/opendps into d4
kohrar Sep 29, 2019
c905d01
Merge branch 'color_power_button' of https://git.steamr.com/others/op…
kohrar Sep 29, 2019
d0ed2fe
Merge branch 'func_generator_fix' of https://git.steamr.com/others/op…
kohrar Sep 29, 2019
ce69162
Merge branch 'spelling' of https://git.steamr.com/others/opendps into d4
kohrar Sep 29, 2019
2ee5cc7
Merge branch 'invert_color_option' of https://git.steamr.com/others/o…
kohrar Sep 29, 2019
f9f4ea9
Added power limit feature to DPSMode.
kohrar Sep 29, 2019
6a772ee
Merge branch 'func_dpsmode_samefont' of https://git.steamr.com/others…
kohrar Sep 29, 2019
4f8411b
Removed draw calls on enable call to prevent artifacts on next screen
kohrar Sep 29, 2019
a3bf6fc
Added rot_left/right_m1/m2 events
kohrar Sep 29, 2019
b68943c
Added time type
kohrar Sep 29, 2019
8672330
Merge branch 'borked_dps' of https://git.steamr.com/others/opendps in…
kohrar Sep 30, 2019
a4c3160
Implemented timer, watthour meter, accessible via third row and
kohrar Sep 30, 2019
5199b43
Merge branch 'borked_dps' of https://git.steamr.com/others/opendps in…
kohrar Sep 30, 2019
8b8ff69
Fixed makefile
kohrar Sep 30, 2019
576fc4d
Disable timer graphics when disabled
kohrar Sep 30, 2019
ce513db
Merge branch 'func_dpsmode_timer_meter' of https://git.steamr.com/oth…
kohrar Sep 30, 2019
b2146f8
Minor bug fixes
kohrar Sep 30, 2019
807f3a0
Merge branch 'func_dpsmode_timer_meter' of https://git.steamr.com/oth…
kohrar Sep 30, 2019
c68f0a1
Minor tweaks to constants
kohrar Sep 30, 2019
5b41012
Merge branch 'dp50v5a' of https://git.steamr.com/others/opendps into d4
kohrar Sep 30, 2019
f46ef5e
Minor tweaks to constants
kohrar Sep 30, 2019
7fe4803
Merge branch 'dp50v5a' of https://git.steamr.com/others/opendps into d4
kohrar Sep 30, 2019
bb53ae2
Calibrated values and they are now spot on
kohrar Sep 30, 2019
e2f33e6
Colons render a bit better
kohrar Sep 30, 2019
20a1aef
Entering select mode will focus on item being edited
kohrar Sep 30, 2019
b65673c
Merge branch 'dp50v5a' of https://git.steamr.com/others/opendps into d4
kohrar Sep 30, 2019
69882bb
Merge branch 'func_dpsmode_timer_meter' of https://git.steamr.com/oth…
kohrar Sep 30, 2019
3301371
Focus on proper item when entering select mode
kohrar Sep 30, 2019
1330e66
Merge branch 'func_dpsmode_timer_meter' of https://git.steamr.com/oth…
kohrar Sep 30, 2019
62a8078
Using the current screen item to focus when entering select mode
kohrar Sep 30, 2019
aaad850
Merge branch 'func_dpsmode_timer_meter' of https://git.steamr.com/oth…
kohrar Sep 30, 2019
5fded77
Keep track of third row item index
kohrar Sep 30, 2019
fc480eb
Merge branch 'func_dpsmode_timer_meter' of https://git.steamr.com/oth…
kohrar Sep 30, 2019
7638ce9
Changed the default digits to the first least significant number
kohrar Sep 30, 2019
3808336
Merge branch 'func_dpsmode_timer_meter' of https://git.steamr.com/oth…
kohrar Sep 30, 2019
ba117e8
Fixed slightly off current ADC values
kohrar Sep 30, 2019
ebdc8cd
Merge branch 'dp50v5a' of https://git.steamr.com/others/opendps into d4
kohrar Sep 30, 2019
5f16d52
Readjusted lower end amperage ADC to prevent noisy 0
kohrar Sep 30, 2019
0696e41
Merge branch 'dp50v5a' of https://git.steamr.com/others/opendps into d4
kohrar Sep 30, 2019
23bd2eb
Refined values for DPS5005
kohrar Oct 1, 2019
cdc1c80
Refined v ADC values
kohrar Oct 1, 2019
c62db4c
Merge branch 'dps5005' of https://git.steamr.com/others/opendps into d4
kohrar Oct 1, 2019
57d1fac
Added recall code and M1/M2 key combination
kohrar Oct 2, 2019
44ef92a
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
0e88aab
Fixed broken code
kohrar Oct 2, 2019
4c5acf3
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
685707c
Fixed bad code
kohrar Oct 2, 2019
a46cbf5
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
baa540f
buttom is button
kohrar Oct 2, 2019
0e4d015
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
e5c7ddf
Handled the new events
kohrar Oct 2, 2019
442ab09
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
5b983a0
Drawing note over everything
kohrar Oct 2, 2019
f5710ba
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
1c45ec2
Added M1 graphics instead of drawing something manually
kohrar Oct 2, 2019
0187621
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
2975408
Extra bracket
kohrar Oct 2, 2019
9c1862a
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
7e5b456
Handle long press m1
kohrar Oct 2, 2019
3dbee69
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
5540a2c
Added recall code
kohrar Oct 2, 2019
0845dd2
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
85bac08
Recall values should be saved
kohrar Oct 2, 2019
e548f92
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
2f3493b
Removed thermometer to save space
kohrar Oct 2, 2019
a69c3fa
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
19834d4
M2 button should now work
kohrar Oct 2, 2019
1c90fd2
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
cccde95
Fixed bad fill
kohrar Oct 2, 2019
cd443ff
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
1997bbd
M2 button should trigger
kohrar Oct 2, 2019
6717534
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
d62c0fb
Show m1/m2 when saving
kohrar Oct 2, 2019
3b92c63
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
ea34e92
Fixed bad gfx name
kohrar Oct 2, 2019
b7b36bc
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
776c089
Clear m1/m2 bar properly
kohrar Oct 2, 2019
0c11930
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
d7640b5
Clear all does not clear m1/m2
kohrar Oct 2, 2019
a134a94
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
1908b69
Power off also updates status
kohrar Oct 2, 2019
4a04485
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
482a160
Using rot turn+down key combo to change third item
kohrar Oct 2, 2019
8757e20
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
ea7457b
No long press as part of key combos
kohrar Oct 2, 2019
a2c5c0f
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
016a6d8
Added brightness
kohrar Oct 2, 2019
794ec13
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
77a7cbf
Fixed getting brightness properly
kohrar Oct 2, 2019
424da15
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
360b2a3
Added brightness to third item list
kohrar Oct 2, 2019
a00dbec
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
604c172
Percentage is no si prefix
kohrar Oct 2, 2019
3201f7c
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
cc0135f
Set brightness from 0 - 120%
kohrar Oct 2, 2019
4700444
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
334fc25
Get brightness on activation
kohrar Oct 2, 2019
48bfc3e
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
179546e
Rot events occur when no other buttons are pressed
kohrar Oct 2, 2019
df3a6a5
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
78b461a
Fixed last commit
kohrar Oct 2, 2019
6188c53
Merge branch 'func_dpsmode_recall' of https://git.steamr.com/others/o…
kohrar Oct 2, 2019
b9d5785
Added recall code and M1/M2 key combination
kohrar Oct 2, 2019
96e84e2
Fixed glitchy 3rd item on start
kohrar Oct 4, 2019
1304d94
No longer forcing a uui refresh when events occur to prevent glitchy…
kohrar Oct 4, 2019
d06453c
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
6ba050d
No longer redrawing screens on activation becauase it is triggered by an
kohrar Oct 4, 2019
ad41ebe
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
6d2a2a6
Clear third item region when focus is changed to avoid select artifact
kohrar Oct 4, 2019
cab74c4
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
0bd367f
Added event_shutoff
kohrar Oct 4, 2019
3d9018a
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
414f268
Removed stringent uui.c event checks
kohrar Oct 4, 2019
820d20c
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
1bbb10b
Fixed bug with updating last time ui was drawn
kohrar Oct 4, 2019
a35a33b
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
a46cd2a
Locked inputs will now do nothing
kohrar Oct 4, 2019
7d7e748
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
c0396c8
Pressing rot should focus on 3rd item being displayed
kohrar Oct 4, 2019
bb53fa6
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
d084750
Fixed typo
kohrar Oct 4, 2019
d66460d
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
637f9da
Missing braket
kohrar Oct 4, 2019
e9d896a
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
c926c81
Added brightness label
kohrar Oct 4, 2019
41f74a3
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
e0035f9
Recall setting will turn off power
kohrar Oct 4, 2019
aba05f1
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
8b79e14
Shutoff event always shuts power off
kohrar Oct 4, 2019
9e56416
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
2a68c2c
Brightness label alignment
kohrar Oct 4, 2019
46947df
Brightness recall is adjusted properly
kohrar Oct 4, 2019
83810a3
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
05ac26c
Reset any modes on activation
kohrar Oct 4, 2019
3c1326e
Merge branch 'func_dpsmode_recall_brightness' of https://git.steamr.c…
kohrar Oct 4, 2019
3fef0ae
Fixed unresponsive ui
kohrar Oct 4, 2019
51ebd36
Merge branch 'master' of https://git.steamr.com/others/opendps into f…
kohrar Oct 5, 2019
3306172
Merge branch 'func_dpsmode_timer_meter' into func_dpsmode_samefont
kohrar Oct 5, 2019
65f9a19
Merge branch 'func_dpsmode_recall_brightness' into func_dpsmode_samefont
kohrar Oct 5, 2019
db5957a
Makefile build should only contain dpsmode files if compiled with dps…
kohrar Oct 5, 2019
2165b88
Refined dps mode values
kohrar Oct 5, 2019
b6ae188
Fixed regression on opendps uui calls
kohrar Oct 5, 2019
e8f3657
Blinking done by MOD rather than bitshift
kohrar Oct 5, 2019
e23a6bd
Blink should be more constant
kohrar Oct 5, 2019
5cd3fad
Added timer event to cause poweroff and UI updates
kohrar Oct 5, 2019
0b73386
Fixed duplicate event cases
kohrar Oct 5, 2019
f90ff78
Timer event will trigger when timer value is set to 0
kohrar Oct 5, 2019
c749ce2
Removed the timer change event_timer call
kohrar Oct 5, 2019
4b67ed5
Ensure that timer event can be handled by uui
kohrar Oct 5, 2019
a21a898
Fix invalid focus issue
kohrar Oct 5, 2019
52e046d
Pressing rot should not focus on third item if already in single edit
kohrar Oct 5, 2019
9f4224e
Added event_opp triggerd when over power protection kicks on
kohrar Oct 5, 2019
22e82b9
Reverted some changes made to Makefile and function generator
kohrar Oct 5, 2019
92d7fa0
Initial commit
kohrar Oct 6, 2019
b25eb9a
Added func_settings init in opendps.c
kohrar Oct 6, 2019
f2463f4
Fixed syntax issues
kohrar Oct 6, 2019
e0a8155
More syntax issues
kohrar Oct 6, 2019
684d0aa
Putting everything inline
kohrar Oct 6, 2019
ccbd3f6
Adjusting layout
kohrar Oct 6, 2019
8e603bc
Rendering everything in 2 columns
kohrar Oct 6, 2019
a7b8aea
Ensure that current_item is bound
kohrar Oct 6, 2019
ad150e8
Hacking signed numbers to work
kohrar Oct 6, 2019
46b2fab
Added persistence
kohrar Oct 6, 2019
e5d3e49
Added another row. Values should have a min/max set so it can be adju…
kohrar Oct 6, 2019
2e2ec56
Updating page again on reset to update values
kohrar Oct 6, 2019
1a4750a
Added update interval
kohrar Oct 6, 2019
b8f2dd2
Extern the update interval variable
kohrar Oct 6, 2019
c34cf62
Field changes should now call the field change function
kohrar Oct 6, 2019
ede443b
Ensure that current item is in sync on activation
kohrar Oct 6, 2019
494c899
Reset page on reactivation
kohrar Oct 6, 2019
52cea35
On activation, we leave select mode
kohrar Oct 6, 2019
1b893a9
Dividing coefficient values as floats
kohrar Oct 6, 2019
0daeb77
Properly handling negatives
kohrar Oct 6, 2019
0c32b35
Saving the opendps update interval to past
kohrar Oct 6, 2019
10921be
Bad past reference
kohrar Oct 6, 2019
50eb7e2
Fixed bad update_interval type
kohrar Oct 6, 2019
04735a8
Fixed bad reference to part_UPDATE_INTERVAL
kohrar Oct 6, 2019
56fc46d
Moved TFT_WIDTH/TFT_HEIGHT to opendps.h
kohrar Oct 6, 2019
aea1bc0
Added missing events code so it works with master
kohrar Oct 6, 2019
7c76ee5
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 6, 2019
f17871e
Added the enable function back so that past write gets called
kohrar Oct 6, 2019
f04145b
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 7, 2019
2f4cc9b
Minor changes
kohrar Oct 7, 2019
fcb475e
Ensure that pressing rot will not enter edit mode if already in edit
kohrar Oct 7, 2019
1534f72
Documentation and minor refactor
kohrar Oct 8, 2019
7cbcf1a
Merge branch 'func_dpsmode_samefont' of https://git.steamr.com/others…
kohrar Oct 8, 2019
e271123
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 8, 2019
2ad3232
Added missing dbg_debug
kohrar Oct 8, 2019
a7b7788
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 8, 2019
54c5b55
Page remains the same on screen re-activation
kohrar Oct 8, 2019
4f5481d
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 8, 2019
5b449cc
Fixed opendps_screen_update_ms
kohrar Oct 8, 2019
ecb70ce
Pulled in missing refresh changes from dpsmode
kohrar Oct 8, 2019
85c3e6a
Ensure pressing rot will still work in single edit or select mode
kohrar Oct 8, 2019
6512ac7
Added decimilli unit 10^-4 due to lack of precision with just 10^-3
kohrar Oct 10, 2019
321122e
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 10, 2019
6cb5cbe
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 10, 2019
54dfbc2
Placed all fields into an array of struct
kohrar Oct 10, 2019
dcb7214
Added min/max to fields table
kohrar Oct 10, 2019
79ff1c3
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 10, 2019
dd303ee
Removed lock icon from appearing when attempting to change screens wh…
kohrar Oct 13, 2019
08b095c
Merge branch 'func_dpsmode_samefont' of https://git.steamr.com/others…
kohrar Oct 13, 2019
d125dab
Fixed compile warnings in dpsmode
kohrar Oct 13, 2019
b71a677
Merge branch 'func_dpsmode_samefont' of https://git.steamr.com/others…
kohrar Oct 13, 2019
f80cb46
Fixed invalid event call in uui.c
kohrar Oct 13, 2019
9acf4d9
Merge branch 'func_dpsmode_samefont' of https://git.steamr.com/others…
kohrar Oct 13, 2019
36216a1
Added bool and units to table
kohrar Oct 13, 2019
3e0339a
Merge branch 'func_settings_bool' of https://git.steamr.com/others/op…
kohrar Oct 13, 2019
9608a6b
renamed settings to ui_settings
kohrar Oct 13, 2019
8c0c68f
Merge branch 'func_settings_bool' of https://git.steamr.com/others/op…
kohrar Oct 13, 2019
69b9b40
Def
kohrar Oct 13, 2019
ae05314
Merge branch 'func_settings_bool' of https://git.steamr.com/others/op…
kohrar Oct 13, 2019
b8c2583
Set cur_digit
kohrar Oct 13, 2019
c61d398
Merge branch 'func_settings_bool' of https://git.steamr.com/others/op…
kohrar Oct 13, 2019
0facb58
Boolean
kohrar Oct 13, 2019
c3253c6
Merge branch 'func_settings_bool' of https://git.steamr.com/others/op…
kohrar Oct 13, 2019
0e5acfb
ON spacing
kohrar Oct 13, 2019
0ef24dc
Merge branch 'func_settings_bool' of https://git.steamr.com/others/op…
kohrar Oct 13, 2019
6358c19
Moved enable lock down to 3rd page
kohrar Oct 13, 2019
4fca5ea
Merge branch 'func_settings_bool' of https://git.steamr.com/others/op…
kohrar Oct 13, 2019
b462f6a
Added field digits, decimals and unit types
kohrar Oct 13, 2019
73d3c8c
Rewrote the digit drawing algorithm
kohrar Oct 17, 2019
37829e7
Merge branch 'func_settings' of https://git.steamr.com/others/opendps…
kohrar Oct 17, 2019
b217e4e
Merge branch 'fix_digits' of https://git.steamr.com/others/opendps in…
kohrar Oct 17, 2019
7119f77
Fixed digit rendering in uui_number.c
kohrar Nov 1, 2020
b856158
func_cv.o removed from default list of objects to link
kohrar May 21, 2021
82f7bae
Merge branch 'master' of https://github.com/kanflo/opendps into HEAD
kohrar May 21, 2021
534a8d5
Merge branch 'fix_func_cc_cv_cl' of https:///github.com/kohrar/opendp…
kohrar May 21, 2021
ea82e69
The settings screen in table format with negative number support
kohrar May 22, 2021
14f8568
Settings screen now uses the gear icon
kohrar May 22, 2021
4384031
DPS mode screen no longer shows brightness setting
kohrar May 22, 2021
a744f61
Refined UI rendering to avoid redrawing elements unnecessarily.
kohrar May 22, 2021
9763653
Reverted dps-model.h values to that from master.
kohrar May 22, 2021
e5716ef
Added popup message to settings screen
kohrar May 23, 2021
21f7947
DPS screen will only save presets and last settings when necessary
kohrar May 23, 2021
e34d702
Fixed incorrect popup message when saving settings in settings screen
kohrar May 23, 2021
344f40b
DPS Mode refinements
kohrar May 23, 2021
d52b0f2
Fixed incorrect past save IDs in DPS mode.
kohrar May 24, 2021
53d51b9
Added init state
kohrar Jun 2, 2021
13dae83
Added a low input voltage warning
kohrar Jun 4, 2021
b36c883
Ensure that DPS Mode screen will save values even when reading fails
kohrar Jun 9, 2021
6d1ac51
Corrected incorrect C/K Vin setting labels
kohrar Jun 10, 2021
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
28 changes: 25 additions & 3 deletions opendps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ DEBUG ?= 0
WDOG ?= 1

# Font file
METER_FONT_FILE ?= gfx/Ubuntu-C.ttf
METER_FONT_SMALL_SIZE ?= 18
METER_FONT_FILE ?= gfx/nf.ttf
METER_FONT_SMALL_SIZE ?= 16
METER_FONT_MEDIUM_SIZE ?= 24
METER_FONT_LARGE_SIZE ?= 48
FULL_FONT_FILE ?= gfx/ProggyClean.ttf
Expand All @@ -44,13 +44,20 @@ COLORSPACE ?= 0
# Colors for the main UI elements -- see ili9163c.h for list of colors
COLOR_VOLTAGE ?= WHITE
COLOR_AMPERAGE ?= WHITE
COLOR_WATTAGE ?= WHITE
COLOR_INPUT ?= WHITE

# Optional tinting for UI elements
TINT ?= ffffff

# Enable DPS-look-alike mode
DPSMODE_ENABLE ?= 1

# Enable CC mode
CC_ENABLE ?= 1
CC_ENABLE ?= 0

# Enable CV mode
CV_ENABLE ?= 0

# Enable CV mode
CV_ENABLE ?= 1
Expand All @@ -61,6 +68,9 @@ CL_ENABLE ?= 1
# Enable function generator mode
FUNCGEN_ENABLE ?= 1

# Enable settings
SETTINGS_ENABLE ?= 1

# Enable invert color feature
INVERT_ENABLE ?= 0

Expand All @@ -82,6 +92,7 @@ CFLAGS += \
-DCOLORSPACE=$(COLORSPACE) \
-DCOLOR_VOLTAGE=$(COLOR_VOLTAGE) \
-DCOLOR_AMPERAGE=$(COLOR_AMPERAGE) \
-DCOLOR_WATTAGE=$(COLOR_WATTAGE) \
-DCOLOR_INPUT=$(COLOR_INPUT) \
-D$(MODEL)

Expand All @@ -94,6 +105,7 @@ OBJS = \
crc16.o \
uui.o \
uui_number.o \
uui_time.o \
settings_calibration.o \
hw.o \
pwrctl.o \
Expand Down Expand Up @@ -164,11 +176,21 @@ ifeq ($(CL_ENABLE),1)
OBJS += func_cl.o
endif

ifeq ($(DPSMODE_ENABLE),1)
CFLAGS +=-DCONFIG_DPSMODE_ENABLE
OBJS += func_dpsmode.o gfx-cvbar.o gfx-ccbar.o gfx-ppbar.o gfx-oppbar.o gfx-tmbar.o gfx-m1bar.o gfx-m2bar.o gfx-iconpower.o
endif

ifeq ($(FUNCGEN_ENABLE),1)
CFLAGS +=-DCONFIG_FUNCGEN_ENABLE
OBJS += func_gen.o uui_icon.o gfx-square.o gfx-saw.o gfx-sin.o
endif

ifeq ($(SETTINGS_ENABLE),1)
CFLAGS +=-DCONFIG_SETTINGS_ENABLE
OBJS += func_settings.o gfx-gear.o
endif

ifeq ($(SPLASH_SCREEN),1)
CFLAGS +=-DCONFIG_SPLASH_SCREEN
endif
Expand Down
47 changes: 31 additions & 16 deletions opendps/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,40 @@
#define __EVENT_H__

typedef enum {
event_none = 0,
event_button_m1,
event_button_m2,
event_buttom_m1_and_m2,
event_button_sel,
event_button_enable,
event_rot_left,
event_rot_right,
event_rot_left_set,
event_rot_right_set,
event_rot_press,
event_uart_rx,
event_ocp,
event_ovp
event_none = 0,
event_button_m1,
event_button_m2,
event_button_m1_and_m2,
event_button_sel,

event_button_sel_m1,
event_button_sel_m2,

event_button_enable,
event_rot_left,
event_rot_right,
event_rot_left_set,
event_rot_right_set,
event_rot_left_m1,
event_rot_right_m1,
event_rot_left_m2,
event_rot_right_m2,
event_rot_left_down,
event_rot_right_down,
event_rot_press,

event_uart_rx,
event_ocp,
event_ovp,
event_opp,

event_shutoff,
event_timer
} event_t;

typedef enum {
press_short = 0,
press_long,
press_short = 0,
press_long,
} button_press_t;


Expand Down
268 changes: 125 additions & 143 deletions opendps/font-meter_large.c

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions opendps/font-meter_large.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

#include <stdint.h>

#define FONT_METER_LARGE_MAX_GLYPH_HEIGHT (35)
#define FONT_METER_LARGE_MAX_GLYPH_WIDTH (22)
#define FONT_METER_LARGE_MAX_GLYPH_HEIGHT (25)
#define FONT_METER_LARGE_MAX_GLYPH_WIDTH (20)
#define FONT_METER_LARGE_MAX_DIGIT_WIDTH (17)
#define FONT_METER_LARGE_DOT_WIDTH (5)
#define FONT_METER_LARGE_DOT_WIDTH (6)
#define FONT_METER_LARGE_SPACING (4)
#define FONT_METER_LARGE_SPACE_WIDTH (9)
#define FONT_METER_LARGE_SPACE_WIDTH (20)

extern const uint32_t font_meter_large_height;
extern const uint8_t font_meter_large_widths[96];
extern const uint8_t font_meter_large_sizes[96];
extern const uint16_t font_meter_large_offsets[96];
extern const uint8_t font_meter_large_pixdata[1745];
extern const uint8_t font_meter_large_pixdata[1396];

#endif // __FONT_METER_LARGE_H__
#endif // __FONT_METER_LARGE_H__
154 changes: 86 additions & 68 deletions opendps/font-meter_medium.c
Original file line number Diff line number Diff line change
@@ -1,69 +1,87 @@
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 24 -o meter_medium` */
/** Font generated from gfx/nf.ttf 24pt */

#include "font-meter_medium.h"

const uint32_t font_meter_medium_height = 17;
const uint8_t font_meter_medium_pixdata[444] = {
const uint32_t font_meter_medium_height = 18;
const uint8_t font_meter_medium_pixdata[728] = {
/* '0', offset=0 */
0xe0, 0x0b, 0xf8, 0x3f, 0x7c, 0x7c, 0x3d, 0xb4, 0x2e, 0xf4, 0x1e, 0xf0, 0x1e, 0xf0, 0x1e, 0xf0,
0x1e, 0xf0, 0x1e, 0xf0, 0x1e, 0xf0, 0x1e, 0xf0, 0x2e, 0xf4, 0x3d, 0xb4, 0x7c, 0x7c, 0xf8, 0x3f,
0xe0, 0x0b,
/* '1', offset=34 */
0xd0, 0xc2, 0xcb, 0xef, 0xbb, 0xd6, 0x42, 0x0b, 0x2d, 0xb4, 0xd0, 0x42, 0x0b, 0x2d, 0xb4, 0xd0,
0x42, 0x0b, 0x2d, 0xb4, 0xd0, 0x02,
/* '2', offset=56 */
0xf8, 0x0b, 0xfe, 0x3f, 0x09, 0x7d, 0x00, 0x7c, 0x00, 0x78, 0x00, 0x7c, 0x00, 0x3c, 0x00, 0x1e,
0x40, 0x0f, 0xc0, 0x03, 0xe0, 0x02, 0xf4, 0x00, 0x78, 0x00, 0x3c, 0x00, 0x2d, 0x00, 0xfe, 0xff,
0xfe, 0xff,
/* '3', offset=90 */
0xf8, 0x07, 0xfe, 0x1f, 0x08, 0x3e, 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x2f, 0xf0, 0x0b,
0xf0, 0x1f, 0x00, 0x3e, 0x00, 0x78, 0x00, 0xb4, 0x00, 0xb4, 0x00, 0xb8, 0x05, 0x7d, 0xff, 0x2f,
0xf9, 0x07,
/* '4', offset=124 */
0x00, 0x3d, 0x00, 0xfc, 0x00, 0xf4, 0x03, 0xf0, 0x0f, 0xd0, 0x3d, 0xc0, 0xf3, 0x00, 0xc7, 0x03,
0x0e, 0x0f, 0x2c, 0x3c, 0x74, 0xf0, 0xe0, 0xc0, 0xc3, 0xff, 0xbf, 0xff, 0xff, 0x02, 0xf0, 0x00,
0xc0, 0x03, 0x00, 0x0f, 0x00, 0x3c, 0x00,
/* '5', offset=163 */
0xf4, 0x7f, 0xf4, 0x7f, 0xb4, 0x00, 0x74, 0x00, 0x74, 0x00, 0x74, 0x00, 0xf8, 0x06, 0xf8, 0x1f,
0x40, 0x3f, 0x00, 0x7c, 0x00, 0xb8, 0x00, 0xb4, 0x00, 0xb4, 0x00, 0x7c, 0x04, 0x3e, 0xfe, 0x1f,
0xfd, 0x06,
/* '6', offset=197 */
0x00, 0x39, 0x80, 0x7f, 0xe0, 0x07, 0xf0, 0x00, 0x78, 0x00, 0x3c, 0x00, 0xfc, 0x1f, 0xfd, 0x7f,
0x2d, 0xf8, 0x2d, 0xf0, 0x2d, 0xf0, 0x2d, 0xf0, 0x3d, 0xf0, 0x3c, 0xf0, 0x7c, 0xb8, 0xf4, 0x7f,
0xd0, 0x1f,
/* '7', offset=231 */
0xff, 0xff, 0xff, 0xff, 0x00, 0xb4, 0x00, 0x3c, 0x00, 0x3d, 0x00, 0x1e, 0x00, 0x0f, 0x40, 0x0b,
0x80, 0x07, 0xc0, 0x03, 0xc0, 0x03, 0xd0, 0x02, 0xe0, 0x01, 0xf0, 0x01, 0xf0, 0x00, 0xf0, 0x00,
0xf0, 0x00,
/* '8', offset=265 */
0xe0, 0x1f, 0xf8, 0x7f, 0x3d, 0xb8, 0x2d, 0xf0, 0x2d, 0xf0, 0x2d, 0xb4, 0x3c, 0x38, 0xf0, 0x1e,
0xf0, 0x0f, 0x78, 0x3e, 0x2d, 0xb8, 0x1e, 0xf0, 0x0f, 0xf0, 0x1f, 0xf0, 0x3e, 0xf8, 0xfc, 0x3f,
0xe0, 0x0b,
/* '9', offset=299 */
0xe0, 0x0b, 0xf8, 0x3f, 0x7c, 0x7c, 0x2d, 0xb4, 0x2e, 0xf0, 0x1e, 0xf0, 0x2e, 0xf0, 0x2d, 0xf0,
0x7c, 0xf0, 0xf8, 0xff, 0xe0, 0xff, 0x00, 0xb4, 0x00, 0x3c, 0x00, 0x3d, 0x90, 0x0f, 0xfc, 0x07,
0xb8, 0x00,
/* '.', offset=333 */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xfa, 0x2c,
/* 'V', offset=346 */
0x3d, 0x00, 0x3c, 0x0f, 0x00, 0xcf, 0x03, 0xc0, 0xf3, 0x01, 0xb4, 0xb8, 0x00, 0x2e, 0x3d, 0xc0,
0x07, 0x0f, 0xf0, 0xc0, 0x03, 0x3c, 0xe0, 0x41, 0x0b, 0xb4, 0xe0, 0x01, 0x3c, 0x3c, 0x00, 0x0f,
0x0b, 0x80, 0xd7, 0x01, 0xc0, 0x3e, 0x00, 0xf0, 0x0f, 0x00, 0xf8, 0x02, 0x00, 0x7d, 0x00,
/* 'A', offset=393 */
0x00, 0x7d, 0x00, 0x00, 0xbe, 0x00, 0x00, 0xff, 0x00, 0x00, 0xeb, 0x00, 0x40, 0xd7, 0x01, 0x80,
0xc3, 0x02, 0xc0, 0xc3, 0x03, 0xd0, 0x82, 0x07, 0xe0, 0x41, 0x0b, 0xf0, 0x00, 0x0f, 0xf0, 0x00,
0x0f, 0xf4, 0xff, 0x1f, 0xf8, 0xff, 0x2f, 0x7c, 0x00, 0x3d, 0x3c, 0x00, 0x3c, 0x3c, 0x00, 0x7c,
0x2d, 0x00, 0x78,
0x00, 0xfe, 0x01, 0xd0, 0xff, 0x0f, 0xf0, 0x42, 0x2f, 0xf8, 0x00, 0x3e, 0x7c, 0x00, 0x7f, 0x3c,
0x80, 0xbf, 0x3d, 0xc0, 0xbb, 0x3d, 0xf0, 0xf8, 0x3d, 0x78, 0xf8, 0x3d, 0x3c, 0xf4, 0x3d, 0x0f,
0xf8, 0xbd, 0x07, 0xb8, 0xfc, 0x03, 0xbc, 0xfc, 0x00, 0x7c, 0xf8, 0x00, 0x3d, 0xf0, 0x42, 0x2f,
0xd0, 0xff, 0x0f, 0x00, 0xfe, 0x01,
/* '1', offset=54 */
0x40, 0x3f, 0x00, 0xfd, 0x0f, 0xd0, 0xef, 0x03, 0xb8, 0xf0, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x0f,
0x00, 0xc0, 0x03, 0x00, 0xf0, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0f, 0x00, 0xc0, 0x03, 0x00, 0xf0,
0x00, 0x00, 0x3c, 0x00, 0x00, 0x0f, 0x00, 0xc0, 0x03, 0x00, 0xf0, 0x00, 0xfc, 0xff, 0x3f, 0xff,
0xff, 0x0f,
/* '2', offset=104 */
0xe4, 0x6f, 0xc0, 0xff, 0xff, 0xf0, 0x01, 0xbe, 0x04, 0x00, 0x3e, 0x00, 0x00, 0x1f, 0x00, 0xc0,
0x03, 0x00, 0xf4, 0x00, 0x00, 0x2f, 0x00, 0xd0, 0x03, 0x00, 0x7d, 0x00, 0xc0, 0x07, 0x00, 0xbc,
0x00, 0xc0, 0x0b, 0x00, 0xbc, 0x00, 0xc0, 0x0b, 0x00, 0xf8, 0x00, 0x00, 0xff, 0xff, 0xdf, 0xff,
0xff, 0x07,
/* '3', offset=154 */
0xf9, 0x7f, 0xc0, 0xff, 0xff, 0xa0, 0x01, 0xfd, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x0f, 0x00, 0xd0,
0x03, 0x00, 0xbd, 0x40, 0xff, 0x07, 0xd0, 0xff, 0x01, 0x00, 0xf8, 0x02, 0x00, 0xf4, 0x00, 0x00,
0x7c, 0x00, 0x00, 0x2e, 0x00, 0xc0, 0x0b, 0x00, 0xf4, 0x1d, 0x80, 0x3f, 0xff, 0xff, 0x43, 0xfe,
0x1f, 0x00,
/* '4', offset=204 */
0x00, 0xc0, 0x0f, 0x00, 0xe0, 0x0f, 0x00, 0xf4, 0x0f, 0x00, 0x7c, 0x0f, 0x00, 0x5d, 0x0f, 0x00,
0x4f, 0x0f, 0x80, 0x43, 0x0f, 0xd0, 0x42, 0x0f, 0xf0, 0x40, 0x0f, 0xb4, 0x40, 0x0f, 0x3c, 0x40,
0x0f, 0x1e, 0x40, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x40, 0x0f, 0x00, 0x40, 0x0f,
0x00, 0x40, 0x0f, 0x00, 0x40, 0x0f,
/* '5', offset=258 */
0xfe, 0xff, 0x87, 0xff, 0xff, 0xe1, 0x02, 0x00, 0xb8, 0x00, 0x00, 0x2e, 0x00, 0x80, 0x0b, 0x00,
0xe0, 0xff, 0x06, 0xf8, 0xff, 0x0b, 0x05, 0xe0, 0x0b, 0x00, 0xe0, 0x03, 0x00, 0xf0, 0x01, 0x00,
0x7c, 0x00, 0x00, 0x1f, 0x00, 0xc0, 0x07, 0x00, 0xf8, 0x1c, 0x80, 0x2f, 0xff, 0xff, 0x42, 0xfe,
0x1b, 0x00,
/* '6', offset=308 */
0x00, 0xfd, 0x0b, 0xc0, 0xff, 0x2f, 0xf0, 0x07, 0x14, 0xf4, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x3c,
0x00, 0x00, 0x3d, 0xfd, 0x02, 0x7d, 0xff, 0x1f, 0xfd, 0x02, 0x3e, 0xfd, 0x00, 0xbc, 0x7d, 0x00,
0xf8, 0x3d, 0x00, 0xf4, 0x3c, 0x00, 0xf4, 0x7c, 0x00, 0xf8, 0xf8, 0x00, 0xbc, 0xf0, 0x02, 0x3f,
0xd0, 0xff, 0x1f, 0x40, 0xfe, 0x02,
/* '7', offset=362 */
0xff, 0xff, 0xef, 0xff, 0xff, 0x07, 0x00, 0xf0, 0x00, 0x00, 0x2e, 0x00, 0xc0, 0x07, 0x00, 0xf4,
0x00, 0x00, 0x2e, 0x00, 0xc0, 0x07, 0x00, 0xf4, 0x00, 0x00, 0x2f, 0x00, 0xc0, 0x03, 0x00, 0xf8,
0x00, 0x00, 0x1f, 0x00, 0xd0, 0x03, 0x00, 0xb8, 0x00, 0x00, 0x1f, 0x00, 0xe0, 0x03, 0x00, 0xbc,
0x00, 0x00,
/* '8', offset=412 */
0x40, 0xff, 0x02, 0xf0, 0xff, 0x1f, 0xf8, 0x01, 0x3f, 0xbc, 0x00, 0x7c, 0x7c, 0x00, 0x7c, 0xbc,
0x00, 0x3c, 0xf0, 0x01, 0x2f, 0x80, 0xff, 0x07, 0xd0, 0xff, 0x0b, 0xf4, 0x01, 0x3f, 0x7c, 0x00,
0x7c, 0x3d, 0x00, 0xf8, 0x3d, 0x00, 0xf8, 0x3d, 0x00, 0xf8, 0x7c, 0x00, 0xbc, 0xfc, 0x01, 0x3f,
0xf0, 0xff, 0x1f, 0x80, 0xff, 0x02,
/* '9', offset=466 */
0x80, 0xff, 0x01, 0xf0, 0xff, 0x0f, 0xf8, 0x41, 0x2f, 0x7c, 0x00, 0x3d, 0x3d, 0x00, 0x7c, 0x3d,
0x00, 0xbc, 0x3d, 0x00, 0xbc, 0x3d, 0x00, 0xfc, 0x7c, 0x00, 0xfd, 0xf8, 0x41, 0xff, 0xf0, 0xff,
0xb7, 0x80, 0xbf, 0xb8, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x3e, 0x20, 0x80, 0x0f,
0xf0, 0xff, 0x07, 0xe0, 0xbf, 0x00,
/* '.', offset=520 */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xf4, 0xdb, 0x6f, 0xbf, 0xfd, 0xf6, 0x0b,
/* 'V', offset=543 */
0x1f, 0x00, 0xf0, 0xbe, 0x00, 0xc0, 0xe7, 0x03, 0x40, 0x4f, 0x0f, 0x00, 0x3e, 0x7c, 0x00, 0x7c,
0xf0, 0x02, 0xf0, 0x40, 0x0f, 0xd0, 0x03, 0x3c, 0x80, 0x0b, 0xf0, 0x01, 0x1f, 0x80, 0x0b, 0x3c,
0x00, 0x3d, 0xf4, 0x00, 0xf0, 0xe0, 0x02, 0xc0, 0xc7, 0x03, 0x00, 0x2d, 0x0f, 0x00, 0xf0, 0x2d,
0x00, 0xc0, 0x7f, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xf4, 0x03, 0x00,
/* 'A', offset=602 */
0x00, 0xf4, 0x03, 0x00, 0x80, 0x3f, 0x00, 0x00, 0xfc, 0x07, 0x00, 0xc0, 0xb7, 0x00, 0x00, 0x2e,
0x0f, 0x00, 0xf0, 0xf1, 0x01, 0x00, 0x0f, 0x2e, 0x00, 0xb4, 0xd0, 0x03, 0x80, 0x07, 0x3c, 0x00,
0x3c, 0x80, 0x07, 0xd0, 0x03, 0xf4, 0x00, 0xfe, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x01, 0x0f, 0x00,
0x2e, 0xf8, 0x00, 0xd0, 0xc3, 0x0b, 0x00, 0x7c, 0x7c, 0x00, 0xc0, 0xdb, 0x03, 0x00, 0xf8,
/* 'W', offset=665 */
0x1f, 0x00, 0x00, 0xff, 0x01, 0x00, 0xf0, 0x2e, 0x00, 0x00, 0xdf, 0x02, 0x00, 0xf4, 0x3d, 0xf0,
0x42, 0xcf, 0x43, 0x2f, 0xb4, 0x3c, 0xf4, 0x83, 0xcb, 0x83, 0x3b, 0x78, 0x7c, 0x7c, 0xc7, 0x83,
0xc7, 0xb2, 0x3c, 0xb4, 0x1d, 0xcb, 0x43, 0xdb, 0xf0, 0x3c, 0xf0, 0x0e, 0xde, 0x02, 0xff, 0xd0,
0x1e, 0xf0, 0x0b, 0xfc, 0x01, 0x7f, 0xc0, 0x0f, 0xe0, 0x03, 0xf8, 0x00, 0x3d, 0x80, 0x0f,
};

const uint8_t font_meter_medium_widths[96] = {
5u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 3u, 0u,
8u, 5u, 8u, 8u, 9u, 8u, 8u, 8u,
8u, 8u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 12u, 0u, 0u, 0u, 0u, 0u, 0u,
14u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 5u, 0u,
12u, 11u, 11u, 11u, 12u, 11u, 12u, 11u,
12u, 12u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 14u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 11u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 13u, 14u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
Expand All @@ -73,12 +91,12 @@ const uint8_t font_meter_medium_widths[96] = {

const uint8_t font_meter_medium_sizes[96] = {
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 13u, 0u,
34u, 22u, 34u, 34u, 39u, 34u, 34u, 34u,
34u, 34u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 51u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 23u, 0u,
54u, 50u, 50u, 50u, 54u, 50u, 54u, 50u,
54u, 54u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 63u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 47u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 59u, 63u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
Expand All @@ -88,12 +106,12 @@ const uint8_t font_meter_medium_sizes[96] = {

const uint16_t font_meter_medium_offsets[96] = {
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 333u, 0u,
0u, 34u, 56u, 90u, 124u, 163u, 197u, 231u,
265u, 299u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 393u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 520u, 0u,
0u, 54u, 104u, 154u, 204u, 258u, 308u, 362u,
412u, 466u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 602u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 346u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 543u, 665u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u,
Expand Down
14 changes: 7 additions & 7 deletions opendps/font-meter_medium.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 24 -o meter_medium` */
/** Font generated from gfx/nf.ttf 24pt */

#ifndef __FONT_METER_MEDIUM_H__
#define __FONT_METER_MEDIUM_H__

#include <stdint.h>

#define FONT_METER_MEDIUM_MAX_GLYPH_HEIGHT (17)
#define FONT_METER_MEDIUM_MAX_GLYPH_WIDTH (12)
#define FONT_METER_MEDIUM_MAX_DIGIT_WIDTH (9)
#define FONT_METER_MEDIUM_DOT_WIDTH (3)
#define FONT_METER_MEDIUM_MAX_GLYPH_HEIGHT (18)
#define FONT_METER_MEDIUM_MAX_GLYPH_WIDTH (14)
#define FONT_METER_MEDIUM_MAX_DIGIT_WIDTH (12)
#define FONT_METER_MEDIUM_DOT_WIDTH (5)
#define FONT_METER_MEDIUM_SPACING (2)
#define FONT_METER_MEDIUM_SPACE_WIDTH (5)
#define FONT_METER_MEDIUM_SPACE_WIDTH (14)

extern const uint32_t font_meter_medium_height;
extern const uint8_t font_meter_medium_widths[96];
extern const uint8_t font_meter_medium_sizes[96];
extern const uint16_t font_meter_medium_offsets[96];
extern const uint8_t font_meter_medium_pixdata[444];
extern const uint8_t font_meter_medium_pixdata[728];

#endif // __FONT_METER_MEDIUM_H__
Loading