mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
34 lines
597 B
TypeScript
34 lines
597 B
TypeScript
import type { GenericCalcType } from './types';
|
|
|
|
const ohmsLawCalc: GenericCalcType = {
|
|
icon: 'mdi:ohm',
|
|
keywords: [],
|
|
shortDescription: '',
|
|
name: "Ohm's Law",
|
|
path: 'ohms-law',
|
|
description: 'Calculates voltage, current and resistance',
|
|
formula: 'V = I * R',
|
|
presets: [],
|
|
variables: [
|
|
{
|
|
name: 'V',
|
|
title: 'Voltage',
|
|
unit: 'volt',
|
|
default: 5
|
|
},
|
|
{
|
|
name: 'I',
|
|
title: 'Current',
|
|
unit: 'ampere',
|
|
default: 1
|
|
},
|
|
{
|
|
name: 'R',
|
|
title: 'Resistance',
|
|
unit: 'ohm'
|
|
}
|
|
]
|
|
};
|
|
|
|
export default ohmsLawCalc;
|