summaryrefslogtreecommitdiff
path: root/apps/plugins/resistor.c (follow)
Commit message (Collapse)AuthorAge
* scroll_engine: Rename scroll_stop* functions to be more consistent with the ↵Thomas Martitz2013-12-14
| | | | | | lcd api. Change-Id: I8ada10b96bfb628cca0331689e8b936ae47c7e1c
* Fix FS#11675 : LED resistor calculator does not wait for keypress. Thanks to ↵Boris Gjenero2011-12-02
| | | | | | Michael Chicoine for reporting the bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31107 a1c6a512-1295-4272-9138-f99709370657
* Remove now unneeded variableThomas Jarosch2011-08-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30346 a1c6a512-1295-4272-9138-f99709370657
* Fix off-by-one memory corruption in resistor plugin.Thomas Jarosch2011-08-25
| | | | | | | | | | | | | | | I'm wondering if that also was the cause for the lines exactly next to it: --------------------------------- /* This cleans out the mysterious garbage that appears */ rb->lcd_clear_display(); --------------------------------- -> Atleast I see no garbage in the sim. Credit for this bug goes to "cppcheck". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30345 a1c6a512-1295-4272-9138-f99709370657
* Remove tabs.Andree Buschmann2011-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29842 a1c6a512-1295-4272-9138-f99709370657
* Fix error in Ohm's law formula as provided in FS#12023. Thanks to Leif Andersen.Andree Buschmann2011-03-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29644 a1c6a512-1295-4272-9138-f99709370657
* * Rename backlight_force_on to backlight_ignore_timeout to make it clear ↵Teruaki Kawashima2011-01-24
| | | | | | | | | | | 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
* Resistor calculator: make brace-style consistentFrank Gevaerts2010-10-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28282 a1c6a512-1295-4272-9138-f99709370657
* Fix typo in resistor plugin help textMichael Chicoine2010-10-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28278 a1c6a512-1295-4272-9138-f99709370657
* Resistor calculator: Initialise variable to make the compiler shut up about ↵Frank Gevaerts2010-10-13
| | | | | | 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
* Resistor calculator: Support Gigaohms in resistor to colour conversion, and ↵Frank Gevaerts2010-10-13
| | | | | | guard against values that can not be represented git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28275 a1c6a512-1295-4272-9138-f99709370657
* Resistor calculator: Use correct units if resistor to colour uses kilo- or ↵Frank Gevaerts2010-10-13
| | | | | | megaohms git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28274 a1c6a512-1295-4272-9138-f99709370657
* Add violet, grey and white multiplier for completenessFrank Gevaerts2010-10-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28273 a1c6a512-1295-4272-9138-f99709370657
* Fix some incorrect colour-to-resistance results. The price is that sometimes ↵Frank Gevaerts2010-10-13
| | | | | | | | | 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
* Resistor calculator: Add lots of static, and slightly reorganise the codeFrank Gevaerts2010-10-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28271 a1c6a512-1295-4272-9138-f99709370657
* Simplify resistance to colour calculations, removing some bugs in the process.Frank Gevaerts2010-10-13
| | | | | | | Fixes the bugs that triggered FS#11667 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28269 a1c6a512-1295-4272-9138-f99709370657
* Resistor calculator: Don't assume a specific foreground colourFrank Gevaerts2010-10-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28205 a1c6a512-1295-4272-9138-f99709370657
* Resistor calculator: simplify layout code, add scrolling, and handle error casesFrank Gevaerts2010-10-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28203 a1c6a512-1295-4272-9138-f99709370657
* Fix typo properly this time, to ensure all greenFrank Gevaerts2010-10-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28195 a1c6a512-1295-4272-9138-f99709370657
* Fix typo, which should fix yellowFrank Gevaerts2010-10-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28194 a1c6a512-1295-4272-9138-f99709370657
* Resistor plugin: Frank Gevaerts2010-10-02
| | | | | | | | 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
* New plugin: Resistor code calculatorFrank Gevaerts2010-10-02
Flyspray: FS#11585 Author: Calvin Walden git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28191 a1c6a512-1295-4272-9138-f99709370657