Andree Buschmann
0258895faa
Fix error in Ohm's law formula as provided in FS#12023. Thanks to Leif Andersen.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29644 a1c6a512-1295-4272-9138-f99709370657
2011-03-25 07:22:38 +00:00
Teruaki Kawashima
01313d5039
* Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does.
...
* Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp.
No functional change except lamp.
See aslo FS#9883.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
2011-01-24 12:29:16 +00:00
Frank Gevaerts
0d91797d96
Resistor calculator: make brace-style consistent
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28282 a1c6a512-1295-4272-9138-f99709370657
2010-10-14 20:13:05 +00:00
Michael Chicoine
529fb70694
Fix typo in resistor plugin help text
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28278 a1c6a512-1295-4272-9138-f99709370657
2010-10-14 03:42:13 +00:00
Frank Gevaerts
a43ace55ea
Resistor calculator: Initialise variable to make the compiler shut up about it (it's always initialised, but the compiler won't know that)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28276 a1c6a512-1295-4272-9138-f99709370657
2010-10-13 21:56:36 +00:00
Frank Gevaerts
7d6c73a1c1
Resistor calculator: Support Gigaohms in resistor to colour conversion, and guard against values that can not be represented
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28275 a1c6a512-1295-4272-9138-f99709370657
2010-10-13 21:52:45 +00:00
Frank Gevaerts
ed869242e4
Resistor calculator: Use correct units if resistor to colour uses kilo- or megaohms
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28274 a1c6a512-1295-4272-9138-f99709370657
2010-10-13 21:30:40 +00:00
Frank Gevaerts
580a5d8207
Add violet, grey and white multiplier for completeness
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28273 a1c6a512-1295-4272-9138-f99709370657
2010-10-13 21:12:21 +00:00
Frank Gevaerts
c00fe34a81
Fix some incorrect colour-to-resistance results. The price is that sometimes the display is subobtimal (like "2000 Ohms" instead of "2 KOhms")
...
Ideally, unit prefixes (K, M,...) should be calculated separately, but the largest resistance we can handle is 99 MOhm, which wouldn't fit in a 32 bit int (using our centiohm internal units) if we didn't cheat. (and technically we could go higher still. white-white-white would be 99 GOhm, but we don't do such high multipliers now)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28272 a1c6a512-1295-4272-9138-f99709370657
2010-10-13 21:05:50 +00:00
Frank Gevaerts
771646a576
Resistor calculator: Add lots of static, and slightly reorganise the code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28271 a1c6a512-1295-4272-9138-f99709370657
2010-10-13 20:43:18 +00:00
Frank Gevaerts
29503eea86
Simplify resistance to colour calculations, removing some bugs in the process.
...
Fixes the bugs that triggered FS#11667
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28269 a1c6a512-1295-4272-9138-f99709370657
2010-10-13 20:13:39 +00:00
Frank Gevaerts
ae75c6eb0a
Resistor calculator: Don't assume a specific foreground colour
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28205 a1c6a512-1295-4272-9138-f99709370657
2010-10-03 14:52:20 +00:00
Frank Gevaerts
c80dd635ab
Resistor calculator: simplify layout code, add scrolling, and handle error cases
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28203 a1c6a512-1295-4272-9138-f99709370657
2010-10-03 13:57:18 +00:00
Frank Gevaerts
9caca08ebc
Fix typo properly this time, to ensure all green
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28195 a1c6a512-1295-4272-9138-f99709370657
2010-10-02 14:48:03 +00:00
Frank Gevaerts
e1320fd442
Fix typo, which should fix yellow
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28194 a1c6a512-1295-4272-9138-f99709370657
2010-10-02 14:46:33 +00:00
Frank Gevaerts
09cb453f0b
Resistor plugin:
...
crop the smallest bitmap so it's usable for any small screen and nut just the c200
make the layout a bit more flexible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28193 a1c6a512-1295-4272-9138-f99709370657
2010-10-02 14:43:23 +00:00
Frank Gevaerts
ad6c8c1a72
New plugin: Resistor code calculator
...
Flyspray: FS#11585
Author: Calvin Walden
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28191 a1c6a512-1295-4272-9138-f99709370657
2010-10-02 14:11:40 +00:00