Skip to content

Commit 001f4cf

Browse files
committed
Fix neopixel rotation for svgpcb
1 parent a0bf421 commit 001f4cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

edg/parts/Neopixel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _svgpcb_template(self) -> str:
201201
assert all([pin is not None for pin in [led_vdd_pin, led_gnd_pin, led_din_pin, led_dout_pin]])
202202

203203
return f"""\
204-
function {self._svgpcb_fn_name()}(xy, rot=90, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {{
204+
function {self._svgpcb_fn_name()}(xy, rot=270, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {{
205205
const kCount = {self._svgpcb_get(self.count)}
206206
207207
// Global params

examples/IotKnob/IotKnob.svgpcb.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ renderPCB({
464464
mmPerUnit: 25.4
465465
})
466466

467-
function NeopixelArrayCircular_4_rgb_knob(xy, rot=90, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {
467+
function NeopixelArrayCircular_4_rgb_knob(xy, rot=270, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {
468468
const kCount = 4
469469

470470
// Global params
@@ -575,7 +575,7 @@ function NeopixelArrayCircular_4_rgb_knob(xy, rot=90, radius=1, startAngle=0, en
575575
return obj
576576
}
577577

578-
function NeopixelArrayCircular_24_rgb_ring(xy, rot=90, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {
578+
function NeopixelArrayCircular_24_rgb_ring(xy, rot=270, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {
579579
const kCount = 24
580580

581581
// Global params
@@ -686,7 +686,7 @@ function NeopixelArrayCircular_24_rgb_ring(xy, rot=90, radius=1, startAngle=0, e
686686
return obj
687687
}
688688

689-
function NeopixelArrayCircular_6_rgb_sw(xy, rot=90, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {
689+
function NeopixelArrayCircular_6_rgb_sw(xy, rot=270, radius=1, startAngle=0, endAngle=360, powerRadiusOffset=0.2) {
690690
const kCount = 6
691691

692692
// Global params

0 commit comments

Comments
 (0)