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
This commit is contained in:
Frank Gevaerts 2010-10-02 14:11:40 +00:00
parent 86de79171b
commit ad6c8c1a72
27 changed files with 1199 additions and 0 deletions

View File

@ -73,6 +73,7 @@ ppmviewer,viewers
properties,viewers
random_folder_advance_config,apps
remote_control,apps
resistor,apps
reversi,games
robotfindskitten,games
rockblox,games

View File

@ -28,6 +28,7 @@ dice.c
disktidy.c
flipit.c
shopper.c
resistor.c
#ifdef USB_ENABLE_HID

View File

@ -886,5 +886,21 @@ pitch_notes.128x64x1.bmp
#endif
#endif /* Complex condition for pitch detector */
/* Resistor Calculator */
#if (LCD_WIDTH >= 320)
resistor.320x240x16.bmp
#elif (LCD_WIDTH >= 240)
resistor.240x400x16.bmp
#elif (LCD_WIDTH >= 220)
resistor.220x176x16.bmp
#elif (LCD_WIDTH >= 176)
resistor.176x220x16.bmp
#elif (LCD_WIDTH >= 160)
resistor.160x128x16.bmp
#elif (LCD_WIDTH >= 132)
resistor.132x80x16.bmp
#elif (LCD_WIDTH >= 128)
resistor.128x128x16.bmp
#endif
#endif /* HAVE_LCD_BITMAP */

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

1150
apps/plugins/resistor.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -560,6 +560,7 @@ Alexey Polkhirev
István Nagy
Wojciech Lesniak
Tuomas Airaksinen
Calvin Walden
The libmad team
The wavpack team

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 887 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -253,6 +253,8 @@ option from the \setting{Context Menu} (see \reference{ref:Contextmenu}).}
{\input{plugins/random_folder_advance_config.tex}}
{\input{plugins/resistor.tex}}
\opt{lcd_color}{\input{plugins/rockpaint.tex}}
\opt{archosrecorder,archosfmrecorder,ondio}{\input{plugins/split_editor.tex}}

View File

@ -0,0 +1,28 @@
\subsection{Resistor Calculator}
\screenshot{plugins/images/ss-resistor}{Resistor calculator}{img:resistor}
The resistor calculator is a plugin that works in 3 modes:
\subsubsection{Colour to Resistance}
In Colour to Resistance mode, use the menus to select the colours of the
bands of a resistor which you would like to know the resistance of.
\subsubsection{Resistance to Colour}
In Resistance to Colour mode, use the menus to select the unit that you
would like to use (choose from Ohms, Kiloohms, Megaohms), and use
the on-screen keyboard to input the value of the resistor that you would
like to know the colour code of. The colour codes are presented
\opt{lcd_color}{graphically and} textually.
\subsubsection{LED resistance}
LED resistance calculator is used to determine the resistor necessary to light
an LED safely at a given voltage. First, select the voltage that the LED will
use (the first option is the most common and a safe bet), and the current
that it will draw (likewise with the first option). Then, use the onscreen
keyboard to type in the supply voltage and, if selected, the custom
foreward current. This function produces safe estimates, but use your own
judgement when using these output values. Power rating and displayed resistance
are rounded up to the nearest common value.