Skip to content

Commit

Permalink
Change concentric pixels to 1/4 the size, to keep it below cartesian …
Browse files Browse the repository at this point in the history
…size.
  • Loading branch information
Ivorforce committed Apr 3, 2020
1 parent ff6d11f commit a037e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion calculate_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
print(f"Total LEDs: {total_leds}")
print(f"Total Power Needed: {total_ampere * led_voltage : .5}W = {total_ampere : .5}A x {led_voltage}v")
print(f"Pixel Lightness: {pixel_density}")
print(f"Concentric Pixels: {int(4 * total_leds + (total_leds / 2 * 4 * (total_leds - 1)))}")
print(f"Concentric Pixels: {int(2 * total_leds + (total_leds / 2 * 1 * (total_leds - 1)))}")
print(f"Cartesian Pixels: {total_leds * total_leds}")

print()
Expand Down
4 changes: 2 additions & 2 deletions src/Setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#define LED_BRIGHTNESS_CORRECTION 0.15

// RingResolution = add * x + min
#define CONCENTRIC_RESOLUTION_MIN 4
#define CONCENTRIC_RESOLUTION_ADD 4
#define CONCENTRIC_RESOLUTION_MIN 2
#define CONCENTRIC_RESOLUTION_ADD 1

// See ROTATION_SENSOR_TYPE_XXX
#define ROTATION_SENSOR_TYPE ROTATION_SENSOR_TYPE_INTERRUPT
Expand Down

0 comments on commit a037e75

Please sign in to comment.