Commit Graph

62 Commits

Author SHA1 Message Date
Kyle Repinski
0c7be326e5 Allow more precise input voltage divider calibration. (#359)
Finer input voltage calibration

Settings divisor is stored as uint16_t, not uint8_t.

* Allow more precise input voltage divider calibration.

The existing code changed the input voltage by multiple
tenths of a volt per adjustment, which is way too coarse.

This commit simply multiplies the ADC value (and its divisor)
by 4, which allows for finer calibration adjustments.

Unfortunately, for safety reasons this requires a settings
version bump. While old stored divider values can be detected
and multiplied by 4 on startup to update them, if the user
downgrades firmware it will happily read the new higher value
and cause all sorts of problems (which could be either reading
higher *or* lower depending on how getInputVoltageX10's
parameter wraps around in old firmware due to incorrect type.
2018-09-20 16:35:33 +10:00
Julius Vitkauskas
54ec20cd9f Update translations and use new translations infrastructure (#357)
* Align Lithuanian translation with text length restrictions

* Make translation generation script work also with Python 3

* Fix compilation error by introducing "OffString" string to translations

* Update translations

* Update remaining translations

* Add Finnish, Dutch, Portuguese and Ukrainian languages

* Add Swedish language, update build script

* Add Norwegian and Serbian (Latin) translations

* Update translation file, add automatically generated file warning

* PIDSETTINGS support. Thanks Andre Bernet (kilrah)

* Update Hungarian translation. Thanks adrianmihalko.
2018-09-18 09:55:52 +10:00
Ben V. Brown
056353ed6a Adding adc2 & new temperature calibration proceedures. [WiP] (#361)
* Add rough calls to ADC2 [untested]

* Using dual ADC injected modes

* Start both ADCs

* Move some IRQ's to ram exec

* Stabilize PID a bit more

* Add in ideas for tip type selection

* Add tiptype formula / settings struct

* Add function ids to the settings menu

* Rough tip selection

* Rough out new cal routine for simple tips

* Hardware test is fairly close for first pass

* Add Simple calibration case [UNTESTED]

This adds the calibration option that uses boiling water to the calibration menu.

This is untested, and may need gain adjustments before use.

* Simple Cal Roughly working

* Rough out advanced cal
2018-09-17 22:18:39 +10:00
Alessandro Gatti
50fe2bcff1 Shrink GUI code and simplify LCD rotation. (#300)
* Inline more methods in FRToSI2C.

* Shrink down GUI code.

* Simplify LCD rotation handling.

* Extract version headers.
2018-05-26 14:21:42 +10:00
Ben V. Brown
b0b512030f Fix up menu icons
Sorry this got lost 😠
Fixed now :)
Fixes #214 finally.
2018-05-11 13:10:36 +10:00
Ben V. Brown
b6b207568c Delay I2C DMA thread on oled slightly
The flickering on the LCD screen was caused by the OLED DMA taking slightly longer than the delays, so the tail end would flicker if the buffer was cleared before it finished writing.

In future may want to double buffer the LCD.

Fixes #290
2018-05-11 12:54:55 +10:00
Alessandro Gatti
8bf65351ea Shrink OLED driver code. (#296)
* Precompute command header.
* Update data header on-demand.
* Use more aggressive inlining.
* Do not clear number buffer twice.
2018-05-11 12:32:37 +10:00
Alessandro Gatti
215fe8e9e8 Reduce code size for accelerometer support (#288)
* Reduce the LIS2DH12 driver's code size.
* Reduce the MMA8652FC driver's code size.
* Make orientation detection smaller.


* Inlined C++ class constructor.
* De-unroll I2C register writes.
* Removed unused setSensitivity method.
2018-05-10 10:02:29 +10:00
Ben V. Brown
4718efe79b 2.04 bugfixes
Should help with UI lockups
2018-05-07 21:24:29 +10:00
Ben V. Brown
771f0a1b9e Cleanup LCD on/off commands into buffer 2018-05-06 20:06:16 +10:00
Ben V. Brown
1fef2fb53a Move OLED LCD update to be DMA'ed
Start Cleaning up I2C HAL
2018-05-06 18:56:38 +10:00
Ben V. Brown
bf1fa74d72 Update debug info
Change pin configs
Clean up some code
2018-05-06 18:01:34 +10:00
Ben V. Brown
42db57da25 Update power indicator
Fixes and closes #211
Final 2.04 release coming up :)
2018-04-27 15:25:58 +10:00
Ben V. Brown
b6351f9696 Add showing the tip temp on idle (#226)
This shows the tip temp on the simple home screen if the temp is > 50C.

This removes the tip temp warning for all users, as now everyone can see the tip temp.

#187
2018-04-27 14:46:59 +10:00
Ben V. Brown
576575d7ba More FRToS I2C cleanup 2018-04-14 16:33:16 +10:00
Ben V. Brown
7c1937b412 Adding FreeRToS constructs to I2C driver 2018-04-14 15:05:46 +10:00
Ben V. Brown
f599624b6f I2C into nicer wrapper for FreeRToS 2018-04-14 13:37:42 +10:00
Ben V. Brown
586267f586 PID retune, ADC Blocks PID properly 2018-04-13 16:19:05 +10:00
Ben V. Brown
f2f20111b6 Force settings reset for 2.04
Also updates FI to #267 but wont be built in releases until string lengths fit.
2018-04-13 10:11:50 +10:00
Ben V. Brown
8eadb98496 Enable SWD back, Add Off mode for Sleep 2018-03-30 19:16:38 +11:00
jonnieZG
96ab173c4b Menu Navigation - Long-Press Speed Ramping (#238)
Exponential button acceleration from @jonnieZG
2018-03-19 07:22:42 +11:00
Julius Vitkauskas
30be520692 Add Lithuanian language (#239) 2018-03-18 21:36:38 +11:00
Ben V. Brown
0d2bfb9a29 Fix Menu / RC2
#214
New Icons
Fix Hold to scroll timer with a lockout
Fix Menu lengths

New French Translation Closes #228

Fix confirmation message scroll speed
Fix translations.cpp
2018-03-14 23:21:29 +11:00
Ben V. Brown
fcfa44a949 Layered menu (#229)
* Split menu handling,speed up OLED

* Split menu apart

Split menu apart.
Next to add icons etc

* Finished main menu re-layout

* Added menu option for scroll speed

* Speed up scroll settings, pad translations
2018-03-14 22:11:04 +11:00
jonnieZG
33edf6ba76 Description scroll speed parametrized + smooth scroll in userConfirmation (#221)
* Enabled DOUBLE line for Croatian + translation fix

Enabled DOUBLE line Menu for Croatian.
A minor translation fix.

* Added Double line menus for Croatian

Added Double line menus for Croatian. For some reason they were not included in the previous pull request, even though I made them (most probably it was by my mistake).

* Added "Power: " translation for Croatian

* Menu desciption scroll sped up 3x

* Slow scroll

* Additional HR translation fix

* EOL fixed

* Fixed flickering - update only when required

* Parametrized description scrolling speed

* Synchronized Translation.c with original Ralim master

* Removed unnecessary check

* lcd.refresh() in description scroll called only when required

* Smooth scrolling also implemented in userConfirmation() method

* Variable messageSpeedFactor renamed to messageSpeedFactor

* Variable renamed
2018-03-11 13:12:49 +11:00
Jan Krupička
677b278478 Use unicode chars U2713/U2717 as true/false in menu (#183)
* Use checkbox for true/false menu options
2018-03-03 22:33:59 +11:00
Ben V. Brown
f14ea321a7 Add detailed soldering screen
This adds a detailed soldering screen to take a step towards #181
2018-03-03 16:20:01 +11:00
Ben V. Brown
aef8f5f5bb LIS2DH - Adding support for the new accelerometer (#216)
+ Creates a new driver for the LIS2DH accelerometer
+ Fixes timing issues since we're already touching a chunk of code

The LIS2DH driver should output similar numbers to the old MMA accelerometer.

Fixes #202
Fixes #189
2018-03-03 15:43:10 +11:00
Ben V. Brown
653c71ba2d Remove unused I2C DMA
Slow down I2C to 50kHz
Adjust ADC timing
2018-01-26 12:42:38 +11:00
jonnieZG
7ba3818cdb Croatian Language: Double-line menus + some minor translation corrections (#186)
* Croatian: Double-line Menus + minor corrections

* Updated main.css - externalizing string

Externalized strings:
"Undervoltage"
"Input V: "
"DC LOW" (Using previously unused ULOWarningString)
"Tip Temp: " (At temperature warning)
"Tip:" (At sleeping advanced)
"Tip:" (At idle screen)
" Set:" (At idle screen)
"BAD TIP"
"Tip Disconnected!" (changed to "TIP DISCONNECTED" due to <=16 limit)

* Update Translation.c - Externalized strings

Externalized strings:
"Undervoltage"
"Input V: "
"DC LOW" (Using previously unused ULOWarningString)
"Tip Temp: " (At temperature warning)
"Tip:" (At sleeping advanced)
"Tip:" (At idle screen)
" Set:" (At idle screen)
"BAD TIP"
"Tip Disconnected!" (changed to "TIP DISCONNECTED" due to <=16 limit)

Max string length corrected from 17 to 16.

* Update Translation.h - Externalized strings

Externalized strings:
"Undervoltage"
"Input V: "
"DC LOW" (Using previously unused ULOWarningString)
"Tip Temp: " (At temperature warning)
"Tip:" (At sleeping advanced)
"Tip:" (At idle screen)
" Set:" (At idle screen)
"BAD TIP"
"Tip Disconnected!" (changed to "TIP DISCONNECTED" due to <=16 limit)
2018-01-08 22:28:13 +11:00
Rockman18
fe1b50f658 Proposal for using checkbox instead of True/False (#177)
Replace True/False icons with checkbox symbols :)
2017-12-24 21:39:16 +11:00
matmemo
beb6b59889 Add letter U+0111 to FONT_6x8 (#176) 2017-12-24 21:36:05 +11:00
matmemo
c0614e7bd6 Add utf-8 capable 6x8 pixel small font (redone) (#173)
* Add small 6x8 font with utf8 extended charset.

The font data is created from the CasioNostalgia font by zdimension
found at: https://fontstruct.com/fontstructions/show/1193786/casionostalgia

* Cleanup Font.h

The font data should be untouched.

This commit does:

  * whitespace cleanup
  * some cosmetic changes to the comments
  * removing commas at the end of array declarations

* Update OLED.cpp to use utf8 capable FONT_6x8

* Remove ASCII6x8 from Font.h

Removed because all glyphs from ASCII6x8 are now contained in FONT_6x8.

* Fix char offset for UTF-8 page 0xc3
2017-12-23 19:38:58 +11:00
Ben V. Brown
90c0bf9683 Fix GUI storage address (same as settings bug) 2017-12-21 23:34:57 +11:00
Jan Krupička
d9b65701c8 Fix menu descriptions (merge first) (#166)
* reformatting

- for better readability
- to lower the risk of misdefining arrays...

* fix description array definitions

* remove accidentally pushed lang definition

* enhance czech translation
2017-12-18 22:34:42 +11:00
Jan Krupička
538a741912 Unify behavior of menu items with questions/warnings (#157) 2017-12-16 09:31:50 +11:00
Ben V. Brown
4c0ba72542 Update Makefile and build script 2017-12-14 21:59:09 +11:00
Ben V. Brown
9f581cb28e Fix file locations again 2017-12-13 12:32:14 +11:00
Ben V. Brown
662b39cbd4 V2.01 roundup 2017-12-12 13:37:08 +11:00
Ben V. Brown
39295c9705 Adding Polish support
Closes #132 afaik.
2017-12-12 13:34:53 +11:00
Ben V. Brown
87c2ed4f53 Add Danish
Closes #96
2017-12-12 13:27:50 +11:00
Ben V. Brown
3c2e8765f2 manually merge in dual line settings 2017-12-12 12:25:26 +11:00
Ben V. Brown
c5c89a516e Pixel by Pixel scrolling
Closes #140
2017-12-12 11:53:43 +11:00
Ben V. Brown
121feef977 Add Turkish translation
Should close #130
Need to test glyph support
2017-12-12 11:33:26 +11:00
Ben V. Brown
17e7d92463 Fix Menu not handling some languages
Should close #125
2017-12-12 11:31:22 +11:00
Jan Krupička
0f4ceb131c Add czech translation (#138)
* Added czech translation

Added czech translation (locale cs_CZ)

* Make simple sleep screen more readable

Add gap between "zzz" and temperature for better readability.

* Adjusted czech translation

Modified texts after testing on real device to fix char issues and increase readability
2017-12-12 11:16:02 +11:00
Ben V. Brown
7cc0fd7c84 Bring in translations for the final 2.0 prep 2017-11-04 15:16:00 +11:00
Ben V. Brown
afa8257bce Add rough russian 2017-11-04 14:37:47 +11:00
Ben V. Brown
046f2df6a1 Fixing up settings
Split advanced settings
Fix menu button handling
2017-10-18 19:43:55 +11:00
Ben V. Brown
aec760e4e7 Revert font table split for now 2017-10-07 12:19:46 +11:00