updated LHM lib
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.lnk
|
||||||
5
How_to_create_scales.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Use this wonderful tool:
|
||||||
|
|
||||||
|
https://soulmare.github.io/scale_master/
|
||||||
|
|
||||||
|
To save the scale, save it as an *.svg file. But don't edit it with any other software, or it won't be editable via the website!
|
||||||
BIN
Scales/600_ppi/CPU_load.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
Scales/600_ppi/CPU_temp.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
Scales/600_ppi/GPU_load.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
Scales/600_ppi/GPU_temp.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
Scales/600_ppi/RAM_usage.png
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
Scales/600_ppi/Sheet_600_ppi.png
Normal file
|
After Width: | Height: | Size: 508 KiB |
BIN
Scales/600_ppi/Sheet_600_ppi.xcf
Normal file
BIN
Scales/600_ppi/VRAM_usage.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
46
Scales/91C4_Scale_template.svg
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<svg width="794" height="1123" data-generator-name="Scale Master" data-generator-version="0.4.5" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-image-orientation="portrait" data-image-size="A4">
|
||||||
|
<!-- Created with Scale Master -->
|
||||||
|
<title>М4206 40х40мм 500мА</title>
|
||||||
|
<desc>Volt & Ampere Meter 91C4, 42х42mm</desc>
|
||||||
|
<rect fill="#ffffff" height="100%" width="100%" id="background"/>
|
||||||
|
<g stroke="#000000" transform="translate(397,562)" fill="none" id="scale_wrapper">
|
||||||
|
<g data-length="6.4252" data-r="88.8189" data-angle="71" title="divs" fill="none" stroke="#000000" stroke-width="0.7559" class="div" data-lev2-each="5" data-lev2-length="11.3386" data-lev2-stroke-width="1.1339" data-linearity-exponent="1" transform="translate(0,11.3386)">
|
||||||
|
<line y2="-100.1575" x2="0" y1="-88.8189" x1="0" data-length="-11.3386" stroke-width="1.1339" transform="rotate(-35.5)"/>
|
||||||
|
<line y2="-95.2441" x2="0" y1="-88.8189" x1="0" data-length="-6.4252" transform="rotate(-31.95)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(-28.4)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(-24.85)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(-21.3)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-100.1575" data-length="-6.4252" stroke-width="1.1339" transform="rotate(-17.75)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(-14.2)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(-10.65)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(-7.1)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(-3.55)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-100.1575" data-length="-6.4252" stroke-width="1.1339"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(3.55)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(7.1)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(10.65)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(14.2)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-100.1575" data-length="-6.4252" stroke-width="1.1339" transform="rotate(17.75)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(21.3)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(24.85)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(28.4)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-95.2441" data-length="-6.4252" transform="rotate(31.95)"/>
|
||||||
|
<line x1="0" y1="-88.8189" x2="0" y2="-100.1575" data-length="-6.4252" stroke-width="1.1339" transform="rotate(35.5)"/>
|
||||||
|
</g>
|
||||||
|
<path class="arc" stroke-width="1.1339" stroke="#000000" fill="none" d="M 51.9066 -72.7704 A 89.3858 89.3858 0 0 0 -51.9066 -72.7704" title="New arc" data-angle="71" data-r="89.3858" transform="translate(0,11.3386)"/>
|
||||||
|
<g data-label-start="0" data-label-step="25" data-angle="71" data-r="107.7165" font-family="Arial" text-anchor="middle" stroke="none" fill="#000000" title="Labels" class="label" font-weight="bold" font-style="normal" transform="translate(0,11.3386)" font-size="13.2283">
|
||||||
|
<text transform="rotate(-35.5)" stroke="none" dy="0.3em" text-anchor="middle" y="-107.7165" x="0">0</text>
|
||||||
|
<text transform="rotate(-17.75)" stroke="none" dy="0.3em" text-anchor="middle" y="-107.7165" x="0">25</text>
|
||||||
|
<text stroke="none" dy="0.3em" text-anchor="middle" y="-107.7165" x="0">50</text>
|
||||||
|
<text transform="rotate(17.75)" stroke="none" dy="0.3em" text-anchor="middle" y="-107.7165" x="0">75</text>
|
||||||
|
<text transform="rotate(35.5)" stroke="none" dy="0.3em" text-anchor="middle" y="-107.7165" x="0">100</text>
|
||||||
|
</g>
|
||||||
|
<path data-top-cut="1.8898" data-height="120.9449" data-width="154.9606" title="Scale Plate" d="M0 0 H -77.4803 V -119.0551 L -75.5906 -120.9449 H 75.5906 L 77.4803 -119.0551 V 0 Z" fill="none" stroke="#000000" stroke-width="0.378" class="plate plate-rectangular-top plate-top-cut" transform="translate(0,12.2835)"/>
|
||||||
|
<text transform="translate(0,-45.3543)" font-weight="bold" font-size="22.6772" font-family="Arial" stroke="none" fill="#000000" dy="0.3em" text-anchor="middle" y="0" x="0" class="label" font-style="normal">CPU °C</text>
|
||||||
|
<path class="circlecnt" stroke-width="0.378" stroke="#000000" fill="none" d="M-30.2362,0a30.2362,30.2362 0 1,0 60.4724,0a30.2362,30.2362 0 1,0 -60.4724,0M0 -30.2362 V30.2362 M-30.2362 0 H30.2362" title="center" data-cx="0" data-cy="0" data-r="30.2362"/>
|
||||||
|
<rect class="rect" stroke-width="0.378" stroke="#000000" fill="none" title="cut out" x="-37.7953" y="-26.4567" width="75.5906" height="52.9134" rx="3.7795" ry="3.7795" transform="translate(0,13.2283)"/>
|
||||||
|
<path class="circlecnt" stroke-width="0.7559" stroke="#000000" fill="none" d="M-5.6693,0a5.6693,5.6693 0 1,0 11.3386,0a5.6693,5.6693 0 1,0 -11.3386,0M0 -5.6693 V5.6693 M-5.6693 0 H5.6693" title="hole" data-cx="0" data-cy="0" data-r="5.6693" transform="translate(-61.9843,-12.2835)"/>
|
||||||
|
<path class="circlecnt" stroke-width="0.7559" stroke="#000000" fill="none" d="M-5.6693,0a5.6693,5.6693 0 1,0 11.3386,0a5.6693,5.6693 0 1,0 -11.3386,0M0 -5.6693 V5.6693 M-5.6693 0 H5.6693" title="hole" data-cx="0" data-cy="0" data-r="5.6693" transform="translate(61.9843,-12.2835)"/>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 5.5 KiB |
@@ -92,7 +92,7 @@ const uint8_t BRIGHTNESS_MIN_VISIBLE = 33;
|
|||||||
// Lighting (FastLED)
|
// Lighting (FastLED)
|
||||||
// -------------------------------
|
// -------------------------------
|
||||||
#define LED_PIN 23
|
#define LED_PIN 23
|
||||||
#define NUM_LEDS 20
|
#define NUM_LEDS 27
|
||||||
|
|
||||||
// -------------------------------
|
// -------------------------------
|
||||||
// Connection state machine
|
// Connection state machine
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ void coreInit() {
|
|||||||
// FastLED init
|
// FastLED init
|
||||||
FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
|
FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
|
||||||
FastLED.setBrightness(255); // full brightness; HSV V controls actual output
|
FastLED.setBrightness(255); // full brightness; HSV V controls actual output
|
||||||
|
FastLED.setMaxPowerInMilliWatts(1500); // limit to 1.5W of power draw from the LEDs
|
||||||
|
|
||||||
// Apply lighting immediately at boot
|
// Apply lighting immediately at boot
|
||||||
applyLighting();
|
applyLighting();
|
||||||
|
|||||||