1
0
forked from me/IronOS
Commit Graph

68 Commits

Author SHA1 Message Date
Laura Klünder
5fcdda16f6 filter translation strings and only include the ones needed 2023-04-25 11:56:52 +02:00
Laura Klünder
cb2e8af700 full profile support 2023-04-23 23:48:24 +02:00
Ben V. Brown
f9ce1ef046 Fix stupid typo 2023-01-22 22:01:08 +11:00
Ben V. Brown
e9cf66734f Update make_translation.py 2022-12-07 18:42:42 +11:00
Ben V. Brown
6abdc70c99 Update make_translation.py 2022-12-07 18:30:20 +11:00
Ben V. Brown
98cbce6552 Format 2022-12-05 22:29:10 +11:00
Ben V. Brown
e9a28c3671 Unify more of the font generation logic between both paths and coalesce all fonts 2022-12-05 22:26:03 +11:00
Ben V. Brown
2a6dd45d56 Bugfix: Correct binning of symbols 2022-12-05 22:26:03 +11:00
Ben V. Brown
fdc31467aa Use size encoded symbols
Update make_translation.py
2022-12-05 22:26:03 +11:00
Ben V. Brown
fa42f0aa61 Mild progress on refactoring 2022-12-04 20:49:45 +11:00
Ben V. Brown
ab12fbaf71 Always big text for description 2022-12-04 15:15:52 +11:00
Ben V. Brown
73b4119d49 Refactor text lists 2022-12-04 15:14:21 +11:00
Ben V. Brown
0c1e3a1b75 Reworking to simplified layout for translations 2022-12-03 23:23:43 +11:00
Ben V. Brown
6c7243edd6 New translations definitions 2022-12-03 21:18:48 +11:00
Ben V. Brown
97651f07d7 Drop font selection toggle requirement 2022-12-03 19:16:53 +11:00
discip
c89db78b45 Calibrate CJC at next boot (#1398)
Changes Cold Junction Compensation (Tip Offset / CJC) to be performed during bootup time. (After starting in settings)
2022-09-10 20:52:57 +10:00
dmitrygribenchuk
566a7eebd6 Removed unused libraries (#1404)
* removed unused libraries

* removed unused libraries
2022-09-03 09:02:03 +10:00
River B
904428ee19 Updated documents, fixed English Translation (#1400)
* Update translations_def.js

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update DebugMenu.md

* Update DebugMenu.md

* Update Development.md

* Update Flashing.md

* Update GettingStarted.md

* Update GettingStarted.md

* Update GettingStarted.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HallSensor.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update HardwareIssues.md

* Update Logo.md

* Update Menu.md

* Update Menu.md

* Update Menu.md

* Update Menu.md

* Update Menu.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update translation_EN.json

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Update DebugMenu.md

* Update DebugMenu.md

* Update README.md

* Update translation_FR.json

* Update README.md

* Update Power.md

* Update Troubleshooting.md

* Update Troubleshooting.md

* Update Troubleshooting.md

* Update HardwareIssues.md

* Update DebugMenu.md

* Update DebugMenu.md

* Update Power.md

* Update Power.md

* Update Power.md

* Update Menu.md

* Update Power.md

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update Translations/translation_EN.json

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update translation_EN.json

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update translation_EN.json

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update Settings.md

* Update translation_EN.json

* Update Documentation/Settings.md

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Update translation_EN.json

* Add files via upload

* Update translation_EN.json

* Update Settings.md

* Add files via upload

* Update Settings.md

* Update Settings.md

* Update Settings.md

* Add files via upload

* Delete translation_EN.json

* Add files via upload

* Update Power.md

* Update Power.md

* Add files via upload

* Update Settings.md

* Add files via upload

* handle font with no symbols to contribute

* Format

* Generate settings.md menu dock

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
Co-authored-by: Ben V. Brown <Ralim@Ralimtek.com>
2022-09-01 21:14:39 +10:00
discip
b5323d9c77 reorder debug menu . . . (#1380)
* Update DebugMenu.md

* Update make_translation.py

* Update GUIThread.cpp

* Update DebugMenu.md
2022-08-25 09:17:15 +10:00
Ben V. Brown
1fbcdcdf98 Pinecil V2 (#1341)
* Add SDK

* fork

* massaging makefile

* Drop git module

* Bring in sdk as its broken

Far, Far to much crap to fix with regex now

* Remove bl706

* rf_para_flash_t is missing defs

* Remove crapton of junk

* Remove yet more

* Poking I2C

* Update peripheral_config.h

* Update pinmux_config.h

* Update preRTOS.cpp

* Update main.hpp

* Setup template

* Verbose boot

* I2C ish

* Update I2C_Wrapper.cpp

* Update main.cpp

* Turn off I2C reading for now

* Display running

* Roughing out scheduling timer0

* Starting ADC setup

* Working scheduling of ADC 🎉

* Format adc headers

* Update IRQ.cpp

* Buttons working

* Slow down I2C

* Poking IRQ

* Larger stack required

* Accel on

* Trying to chase down why __libc_init_array isnt working yet

* Working c++

* Cleanup

* Bump stacks

* I2C wake part workaround

* Cleanup

* Working PWM init

* qc draft

* Hookup PWM

* Stable enough ADC

* ADC timing faster + timer without HAL

* Silence

* Remove boot banner

* Tuning in ADC

* Wake PID after ADC

* Remove unused hal

* Draft flash settings

* Working settings save & restore

* Update to prod model

* Cleanup

* NTC thermistor

* Correct adc gain

* Rough tip resistance progress

* Scratch out resistance awareness of the tip

* better adc settings

* Tweaking ADC

* ADC tweaking

* Make adc range scalable

* Update Dockerfile

* Update configuration.h

* Can read same ADC twice in a row

* ADC Setup

* Update PIDThread.cpp

* Lesser adc backoff

* Update USBPD.h

* Add device ID

* Update BSP_Power.h

* Update BSP.cpp

* DrawHex dynamicLength

* Shorter ID padding

* Show validation code

* tip measurement

* Create access for w0w1

* Expose w0 w1

* Enable debug

* crc32

* Device validation

* wip starting epr

* Logic refactor

* Safer PWM Init

* PD cleanups

* Update bl702_pwm.c

* Update power.cpp

* Update usb-pd

* io

* EPR decode

* Better gui for showing pd specs

* Rough handler for capabilities

* EPR

* Fix > 25V input

* Perform pow step after PPS

* Update BSP.cpp

* Fix timer output

* QC3

* Add tip resistance view

* Hold PD negotiation until detection is done for tip res

* Get Thermal mass

* Tip res =0 protection

* Update PIDThread.cpp

* Update GUIThread.cpp

* Rewrite tip resistance measurement

* Update GUIThread.cpp

* Fix fallback

* Far better tip resistance measurement

* Fix QC 0.6V D-

* Convert the interpolator to int32

* Correct the NTC lookup

* Update BSP.cpp

* Update Setup.cpp

* .

Update configuration #defines

More backported functions

* Update usb-pd

* More missed updates

* Refactor BSP

Magic BSP -> PinecilV2
Pine64 BSP -> Pinecil

Update Makefile

* Add Pinecilv2 to CI

* Pinecil v2 multi-lang

Update push.yml

* Update HallSensor.md

* Update README.md

* Fix wrong prestartcheck default

* Fix logo mapping

* Update Makefile

* Remove unused font block

* Style

* Style

* Remove unused timer funcs

* More culling TS80P

* Revert "More culling TS80P"

This reverts commit 2078b89be7.

* Revert "Remove unused timer funcs"

This reverts commit 0c693a89cc.

* Make VBus check maskable

* Remove DMA half transfer

* Drop using brightness and invert icons and go back to text

Saves flash space

* Refactor settings UI drawing descriptions

* Shorten setting function names

* Store bin file assets

* Fix MHP prestart
2022-08-19 15:39:37 +10:00
Ben V. Brown
078b8f5626 DeviceID (#1314)
* Ability to print hex

* Add device ID getter

* Refactor debug menu

* No longer need patch

* Update make_translation.py

* Fix typo

* Fix hex drawing
2022-06-16 21:39:53 +10:00
Federico Di Lorenzo
943d6bf0bd Symbols change (#1274)
* Costants change

Changing to lowercase for two reasons:
- Disambiguation with LiPos options
- In the SI the symbol for seconds is s (while for minutes is min but doesn't really matter)

* Update translation_BE.json

* Update translation_BG.json

* Update translation_CS.json

* Update translation_DA.json

* Update translation_DE.json

* Update translation_EL.json

* Update translation_EN.json

* Update translation_ES.json

* Update translation_FI.json

* Update translation_FR.json

* Update translation_HR.json

* Update translation_HU.json

* Update translation_IT.json

* Update translation_JA_JP.json

* Update translation_LT.json

* Update translation_NL.json

* Update translation_NL_BE.json

* Update translation_NO.json

* Update translation_PL.json

* Update translation_PT.json

* Update translation_RO.json

* Update translation_RU.json

* Update translation_SK.json

* Update translation_SL.json

* Update translation_SR_CYRL.json

* Update translation_SR_LATN.json

* Update translation_SV.json

* Update translation_TR.json

* Update translation_UK.json

* Update translation_VI.json

* Update translation_YUE_HK.json

* Update translation_ZH_CN.json

* Update translation_ZH_TW.json
2022-04-03 20:04:59 +10:00
Ben V. Brown
a73f634cff Pinecil pd tweaking (#1272)
* Raise PD max to 21V

* gui -> settingsGUI

* VBus probe cache

* Rough pass PD capabilities display

* Cleanup build errors

* PD Debug menu working

* Update make_translation.py

* settingsGUI

* Update GUIThread.cpp

* Nicer debug prints

* Show VBus in PD debug

* Update GUIThread.cpp

* Update make_translation.py

* Add docs

* Build tweaks for TS80P 😢

* Show PPS ranges
2022-04-03 12:58:07 +10:00
Ben V. Brown
fb297704b3 Update make_translation.py 2022-02-06 14:45:40 +11:00
Ben V. Brown
a3cecb852c Update make_translation.py 2022-02-06 12:33:22 +11:00
Christian Rahl
05f38b096c Add new debug menu item to view raw hall effect sensor output. 2022-01-22 19:33:24 -05:00
Devnol
ac769c109a Fix some half height glyphs
Signed-off-by: Devnol <pgkoutsoumanis@gmail.com>
2021-11-20 18:58:58 +02:00
Ben V. Brown
73b6ca28f2 Generate power names 2021-09-26 07:58:19 +10:00
Ben V. Brown
c2593763a0 Expand Names 2021-09-25 10:43:09 +10:00
Ben V. Brown
7dad28a41e Expand python code to auto-generate the array of names 2021-09-25 10:38:09 +10:00
discip
69d8d14e0c Update make_translation.py 2021-09-25 00:25:43 +02:00
Ben V. Brown
f6382cf7cb Building multi-lang 2021-09-12 14:50:39 +10:00
Ben V. Brown
17e82105b1 Give all languages a unique ID 2021-09-12 14:47:44 +10:00
alvinhochun
1a0b542ae6 [RFC] Multi-language firmware (second try) (#941)
* Impl. sectioned font table in firmware

* make_translation.py: Extract build_symbol_conversion_table function

* Put translation indices and strings in a struct

* Move translation objcopy step to Python

* Impl. multi-language firmware demo

* Impl. strings-compressed multi-lang firmware demo

* Add font compression to multi-lang demo

* Refactor Makefile a bit

* Fix rules for make < 4.3

* Add more multi-lang groups

* Add Pinecil multi-lang CI build

* Add lzfx compression license text

* Remote multi-language demo group

* Fix build after merge

* Import code from BriefLZ

* Change brieflz for our use case

* Change compression to use brieflz

* Remove lzfx code

* Update license file for brieflz

* Exclude brieflz files from format check

* Add BriefLZ test
2021-04-30 18:51:13 +10:00
Alvin Wong
fadb25273e Impl. font compression demo 2021-04-17 05:18:19 +08:00
Alvin Wong
6f4f4d9733 Move string compression to Python
... so that the script can know its uncompressed size and calculate the
appropriate buffer size.
2021-04-16 17:55:30 +08:00
Alvin Wong
cf154114d7 Change translation defs to specify fonts to use 2021-04-15 14:32:09 +08:00
Alvin Wong
e601b762b0 Change font table in Python to use bytes literals 2021-04-15 14:32:09 +08:00
Alvin Wong
460d48fafb Reduce code duplication 2021-04-13 18:30:27 +08:00
Alvin Wong
07fb8adb7f Impl. initial translation strings compression 2021-04-12 19:57:29 +08:00
Alvin Wong
2f2575c0b7 Refactor make_translation.py to split parsing and writing 2021-04-12 17:20:19 +08:00
Alvin Wong
570fa16d44 Some refactoring of make_translation.py 2021-04-11 00:05:06 +08:00
Alvin Wong
d53245f8a3 Simplify some Python code 2021-04-10 19:40:33 +08:00
Alvin Wong
f86629657a Fix python type hints
(Checked using mypy)
2021-04-10 02:24:25 +08:00
Alvin Wong
b17e49f54f Do suffix merging for translations
The size savings are very negligible but I implemented it anyway.
2021-04-10 00:44:48 +08:00
Alvin Wong
4061a35b6f Refactor make_translation bytes escaping
- Change font table to store bytes instead of escape sequences
- Add function to convert bytes to escape sequences
- Update tests
2021-04-09 23:04:38 +08:00
Alvin Wong
880920da96 Change TranslationStrings to pointer 2021-04-09 22:22:19 +08:00
Alvin Wong
7d6d7d11c0 Put translation str indices into a struct 2021-04-09 17:20:24 +08:00
Alvin Wong
82620c685d Change translation strs to be stored in one block 2021-04-09 14:45:33 +08:00
Ben V. Brown
d9100d1625 add black 2021-04-05 19:15:02 +10:00