1
0
forked from me/IronOS
Commit Graph

836 Commits

Author SHA1 Message Date
ave
02b21a620b Add a sleep timeout setting for hall sensor (#1969)
* Add a sleep timeout setting for hall sensor

* Update Settings.h to reorder HallEffectSleepTime to the end

* Update Settings.cpp to reorder HallEffectSleepTime to the end

* add HallEffSleepTimeout to rest of translations

* mix misaligned number in Settings.cpp

* fix clang-format issue in getHallEffectSleepTimeout
2024-08-21 15:23:34 +10:00
neon12345
42d7f8d4c5 Update Soldering.cpp
use the LockingKeysString message for state 2
2024-08-13 18:18:39 +02:00
neon12345
d8b7c73b8e Update Soldering.cpp
allow unlock during locked warning
2024-08-11 00:38:22 +02:00
neon12345
dfbf45a1c4 Update Soldering.cpp
fix timed locked warning based on review comments with additional state7 field.
2024-08-06 13:54:33 +02:00
neon12345
cae14dee6a Update OperatingModes.h
add state7 for locked timer ticks
2024-08-06 13:44:15 +02:00
discip
c002f45c7e making the LOCKED / UNLOCKED stay for a second 2024-08-05 22:46:20 +02:00
neon12345
697b0c795d Update Soldering.cpp
fix another logic error
2024-08-01 08:54:26 +02:00
neon12345
3d43354ea1 Update Soldering.cpp
fix timer logic
2024-08-01 08:39:14 +02:00
neon12345
ea2deb0e12 Update Soldering.cpp
change locked warning display time to 1 second
2024-08-01 05:56:09 +02:00
neon12345
ae55d5c3de Update Soldering.cpp
show the locked warning for half a second
2024-08-01 05:41:07 +02:00
neon12345
c0ba6eb30d Update Soldering.cpp
revert last commit
2024-08-01 05:29:53 +02:00
neon12345
34db06ab9c Update Soldering.cpp
allow to use remaining state1 for timer
2024-08-01 05:00:26 +02:00
neon12345
6a2f2dc344 Update Soldering.cpp
optimize lock/unlock display information
2024-07-31 13:28:26 +02:00
discip
80217efd38 Merge branch 'dev' into dev 2024-07-31 13:05:12 +02:00
Ben V. Brown
56d8082e7d Mask LIS2DH12 clone support for TS101 only (#1894)
* Mask LIS2DH12 clone support for TS101 only

* Also mask the probe
2024-07-31 20:57:49 +10:00
neon12345
f0fa271940 Update Soldering.cpp
move comment
2024-07-31 12:28:57 +02:00
neon12345
616db16b00 Update Soldering.cpp
logic description fix
2024-07-31 06:16:51 +02:00
neon12345
2a5ba2b057 Update Soldering.cpp
fix typo
2024-07-31 06:06:45 +02:00
neon12345
297205aa06 Update Soldering.cpp
add additional release state for locking
2024-07-31 05:52:32 +02:00
Ivan Zorin
95eb154c44 Add enum for modes of locking buttons (#1955)
* Add enum for modes of locking buttons

* Update description for FULL value
2024-07-24 22:14:06 +10:00
Ben V. Brown
d9c88c9e71 Sequre T55 Support (#1928)
* Add T55 to build

* Approx in T55

* Update ThermoModel.cpp

* use PT1000 lookup logic

* Handle no accelerometer

* Setup for temp reading

* Lock max temp

* No movement pin

* Compensate for heater coil resistance change

* Fix min offset for T55

* Fixup font for T55

* Update draw_profile_advanced.cpp

* Update draw_temperature_change.cpp

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2024-07-24 19:06:26 +10:00
ReimuHakurei
7d58d1c7c0 Fix profile mode 2024-07-16 23:35:40 -05:00
Ben V. Brown
db126831bd Pinecil 2 PID tune adjustments (#1925)
Lower P/I Terms

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2024-07-12 08:28:10 +10:00
Ben V. Brown
48649908a7 WIP: Split Render for multiple screen resolutions (#1888)
* Create README.md

* Move to new folder

* Migrating

* Migrate Remainder

* format fix (all but one) (#1889)

* Update USBPDDebug_FS2711.cpp

* Delete PrintVoltage.cpp

* Copy in 128x32 template

* Mask drawing for 96x16

* Import #1819

* Update Font.h

* Homescreen

* Update draw_homescreen_detailed.cpp

* Fix oled normal draw for variable height

* Update OLED.cpp

* Draw settings icons

* Update draw_homescreen_simplified.cpp

* Update draw_power_source_icon.cpp

* Fixup oled drawing for fill area

* Update the region fill for mixed heights

* Fix newline height

* FIXUP! Draw icons in settings menu at correct size

* Fix scrollbar

* Update settingsGUI.cpp

* S60(P) Disable auto display rotation

* On tall oled, scroll in 2 line increments

* Bugfix transition L<->R

@discip I take it back, there was a bug :)

* Draw every other one on transitions

* .

* cleanup

* Bootup logo: Draw in centre

* Update OLED.hpp

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2024-07-12 08:27:05 +10:00
Ivan Zorin
18e936ae6d Implement OLED::drawUnavailableIcon() to simplify duplicated calls (#1947) 2024-07-12 00:34:12 +10:00
Ivan Zorin
c19e882338 Add enum for USB PD modes (#1943)
* Add enum for USB PD modes

* Update comments for clarification according to code review
2024-07-09 19:20:02 +10:00
Ben V. Brown
3b344c8680 Fixup! S60 asm source folder
Been broken for a while but better to be correct
2024-06-08 17:58:08 +10:00
Ben V. Brown
2a4e1cd8ab Refactor: Rename Sequre bsp (#1927)
* Rename Sequre BSP Folder

* Update Makefile
2024-06-08 17:53:19 +10:00
Ben V. Brown
e925037988 Sequre Faster PWM (#1926)
* 4x faster PWM

* Add light filter to displayed temp
2024-06-08 17:34:20 +10:00
Ben V. Brown
14b92cde08 Pinecilv2 adc v2 (#1916)
* Updated NTC lookup

* remove float compute from adc (as we dont use it)

* Updated adc settings

* Updated ADC Init

* Custom max temp lookup

* Mask Timer around changing timer rate

* Use timer channels in sane order

* Update IRQ.cpp

* Remove ADC dummy wait on start/stop

* Dont use ADC IRQ

* Disable sampling delay

* Update Setup.cpp

* PinecilV2 disable ROM driver utils

Always use our source

* Force settings upgrade on PinecilV2

Fix forced settings upgrade on Pinecilv2

* Prevent ADC rollover

* Update Setup.cpp

* ADC cleanup

* Rollover prevention

* Measure tip temperature 2nd

* Rebase Buffalo SDK to 1.4.5 (#1923)

* Update bl702_adc.c

* Update board.c

* .

* Update bl702_adc.c

* Import updated hal_drv

* Remove accidental dupe of stack in linker

* First pass update BLE stack

* Update ReleaseNotes

* Update push.yml

* Drop BT Audio which we dont use

* .

* Reformat

* Update conn.c

* Update hog.c
2024-06-08 14:33:06 +10:00
Ben V. Brown
442dbd982e Expand USB-PD mode option (#1917)
* Use PDMode to decide if we do resistance pad

* Rename PDVpdo to USBPDMode

* Add options for PD Mode

* OLED: Allow soft line-wrap x position

* Add new translation option for menu settings values

* Use new setting value for PD Mode

* Update translations for new menu setting

* Fixup! S60

* black python
2024-06-01 16:36:34 +10:00
Ben V. Brown
88d7a8e154 Handle non-EPR devices not encoding PPS correctly (#1911)
Handle non EPR devices not encoding PPS correctly

By not trusting them at all.
2024-05-24 18:21:42 +10:00
Ivan Zorin
f11290891e Remove register keyword according to ISO C++17 for fixing related warning (#1893)
* Remove register keyword according to ISO C++17 for fixing related warning from compiler
2024-05-22 19:44:14 +10:00
Ivan Zorin
9a46d98e37 Move Zzz large line from translations to constants 2024-04-04 12:45:45 +03:00
Ben V. Brown
b5fc1b5891 4 ohm tip (#1868)
* Add 4 ohm PTS200 tip for PinecilV2

* Add PTS200 4 ohm tip to TS101

* Update BSP.cpp
2024-03-22 10:03:46 +11:00
slark-yuxj
e8a1c34733 fix: handle is uninitialized when BFLB_BLE_DISABLE_STATIC_ATTR defined (#1895)
Signed-off-by: yuxiaojun <yuxiaojun@uniontech.com>
2024-03-20 11:57:36 +00:00
Ivan Zorin
1d12e9d7dd source/Makefile compatibility with BSD find [#1886] (#1892)
* source/Makefile compatibility with BSD find [#1886]

* Align formatting

* source/Makefile: remove trailing /s from DIR vars to fix build using BSD find/OSX env [#1886]
2024-03-16 19:32:31 +11:00
Arturo
9ea71bc4d2 USB-PD Support for Sequre S60P (#1883)
* Basic Init

* Rought implementation of fs2711 usb pd interface

* Rought implementation of fs2711 usb pd interface

* Still needs work overcurrent protection keeps getting tripped

* New pdo selection logic

* Update push.yml

* Update push.yml

* Update push.yml

* Update Makefile

* Adds PPS

* Removed unused define

* Adds PPS

* Apply suggestions from code review

Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com>

* Code review changes

* Added osDelay include

* New line alignment for S60 softwarei2c

* Code review

* Fixes code review stuff

* code review changes

* Change voltage limit to 20 as that's what the device is rated for

* Shortened wait time for usb pd

* Fixed issues that cuase S60P to restart constantly

* fixing minimal OLED brightness

With the current settings, the OLED turns off if the first level is selected.

* Adds protocol to s60p debug menu

* loosened fs2711 protocol selection timing

* Adds PDO register reading to negotiation logic

* Fixes FS2711 timeout issue and cleans up driver

* Adds FS2711 protocol negotiation to power loop

* Removed uneeded define

* Reverts changes to Font.h and adds clang-format comments

---------

Co-authored-by: Ben V. Brown <Ralim@Ralimtek.com>
Co-authored-by: discip <53649486+discip@users.noreply.github.com>
Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com>
2024-02-25 22:04:48 +11:00
Ben V. Brown
9f6f2f86ff Add S60P init code (#1884)
* Basic Init

* Add S60P to CI
2024-02-23 10:19:07 +11:00
Ben V. Brown
baf2f26e59 Big overhaul of the UI framework (#1749)
* Starting GUI render refactor to be more immediate mode

Update TemperatureAdjust.cpp

.

Cleanup Soldering

Sleep

SolderingProfiles

Soldering Rework

Rough pass GUI

Temp Adjust

Cleanup old OperatingMode

Debug Menu

* Update TemperatureAdjust.cpp

* Roughing some transition work

* Fixup! Hook in the init starter helper

* Better home screen button handler

* FIXUP! Fix typo's

.

* Update SettingsMenu.cpp

* More settings rework

* More settings rendering

* Fixup

* Transitions

Update SolderingProfile.cpp

Hook in transistions

* Update TemperatureAdjust.cpp

* Update push.yml

* Add auto-repeat to settings menu

* Miniware: Use IT for I2C writes

* Update USBPDDebug_HUSB238.cpp

* Force write screen on side animation cancel

.

* Refactor moving down the settings list

* Update settingsGUI.cpp

* Update I2C_Wrapper.cpp

* Update OLED.cpp

* Rework button handling

* Fix PD debug at boot

* Fixup not showing right menu options

* silence some warnings

* Style cleanup

* Fkit use bit-bang I2C for Miniware

* Update GUIRendering.md

* Fixup transition on enter soldering mode

* Save Settings

* Fixes for some animations not running

Dont bail on animations if keypress is still held

* Fixup settings acceleration

* OLED Up animation

* Link up/down on debug meny

* Make all accelerometers I2C bus aware

Update accelerometers_common.h

* Make I2C mag optional

* Miniware -> Only Bit-Bang I2C

* Fixup for scrollbar

FIXUP! Debug menu returns to home screen

FIXUP! Up oled animation

Fix temp exit

* Settings menu -> Both buttons return a menu layer

* Merge fixup

* Update BMA223.cpp

* Re-Enable OLED sleep

* Save Setting on temp adjust exit

* WiP on startup mode

* Some autostart working

* Add hibernation mode & more autostart fixes

* If cant CJC; go to startup

* Hibernate in sleep

* Cleanup scroll indicator

* FIXUP! Ensure startup warnings are linked in

* FIXUP! Ensure we render out temp change before timing out

* Ensure 100ms delay between CJC samples

* Fix not re-calculating menu length on entering menu

* Implement NegotiationinProgress for USB-PD

* Mask heating until PD finishes negotiation

* Fixup staying in hibernate correctly

* Warning timeout

* Show reset settings warning

* Correctly compensate help text start time

* Update GUIThread.cpp

* Update USBPD.cpp

* .

* Fixup sleep time

* Update printSleepCountdown.cpp

* replacing countdown with big plus while in boost mode

* bringing back the + 1 since it was missing when not in boost mode

* Bail on USB-PD check after 3 seconds incase of DC source

* Fix hibernate

* Update PIDThread.cpp

* did center plus symbol (boost mode)

* Big refactor to not make settings increment handler handle the "is last item" return

* Fixup boot logo

* Fix flashing

* Fixup recalculate the menu length on long hold

* Fixup missing menu entries

* Fix junk left on screen after user confirmation

* Re-order button handler to use custom, then default order to allow setting associated setting

* Attach setting for settings using custom handler

* Fix swap +/- keys

* Fix boost temp

* Implement last menu option for Language selector

* Wait for init before CJC runs

* Check last setting via increment value

* Update BSP.cpp

* removed = from >=

Otherwise incrementing would stop and the scroll bar would already flash at the second to last value.

* (Hacky) Fix for Settings reset

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2024-02-18 09:42:08 +11:00
discip
813722367d Off=>icon (#1678)
replacing Off by an Icon
2024-01-16 06:54:08 +11:00
discip
fb16575cd9 Update Settings.cpp
format fix
2024-01-14 00:36:24 +01:00
Ben V. Brown
ec5f07ec0c Cleanup make includes and formatting rules (#1860)
* Draft cleanup of the folder definition mess

* Move old startup

* Fixup! broken hacky includes

* Update Makefile

* Update Makefile

* Update Makefile

* Bulk format

* Who knew, header guards are a wise idea

* Squash some sizing warnings

* Drop broken usb stack

* Fix BLE headers to be sensible

* Cleaning up proper c styling

* We have newer clang, it does bracketing now

* Run clang-format brackets

* We can drop the old messy bracket-checker with newer clang format

* WiP formatter

* Align grids of scripts by right side

Massively easier to read in nearly all cases

* Excempt the table for compression from formatter
2023-12-27 09:23:12 +11:00
Ben V. Brown
849d1f7d40 Update compilers (#1858)
* Update Alpine Image

* Update push.yml

* Style updates
2023-12-26 19:54:47 +11:00
Ivan Zorin
9931afdb0f Settings: disable Bluetooth LE by default (for PinecilV2) #1856 (#1857) 2023-12-19 14:16:57 +11:00
Ben V. Brown
8ea79e3f7d MHP30: GD32 doesnt implement analog mode (#1845) 2023-12-19 13:53:03 +11:00
Ben V. Brown
ea72aea47d Enforce no EPR polling for non >20V devices 2023-12-09 23:02:20 +11:00
Ivan Zorin
fac46e2187 Font.h: remove extra spaces 2023-11-23 09:34:34 +03:00
discip
8eebb01047 Update Font.h 2023-11-22 18:45:41 +01:00
discip
229ae9b30e Update Font.h 2023-11-22 18:41:02 +01:00