summaryrefslogtreecommitdiff
path: root/apps/plugins/resistor.c (follow)
Commit message (Collapse)AuthorAge
* 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