diff --git a/simulator/src/ui/leds.ts b/simulator/src/ui/leds.ts index eec9003..1484bf6 100644 --- a/simulator/src/ui/leds.ts +++ b/simulator/src/ui/leds.ts @@ -40,13 +40,17 @@ export class LEDs extends LitElement { @state() public neopixels: [number, number, number, number, number] = [0, 0, 0, 0, 0]; @state() public redLed: boolean = false; + amp(v: number): number { + return Math.log(v * 100 + 1) * 25; + } + render () { return html`