-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # marimapper/led.py # marimapper/scanner.py # marimapper/sfm_process.py # marimapper/utils.py # pyproject.toml # test/test_led_functions.py
- Loading branch information
Showing
22 changed files
with
285 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# FC Mega Backend Tutorial | ||
|
||
Why are you here? You don't have an FC Mega, shoo. | ||
|
||
In all seriousness, the FC mega is an LED driver of my own creation for one of my upcoming projects. | ||
|
||
This was born out of a fondness of the FadeCandy boards back in the day. I loved their plug and play approach. | ||
|
||
So I've developed a new one, more powerful and more buggy than ever before! | ||
|
||
The key thing is the Teensy that drove the FadeCandy board has been upgraded from a Teensy 2.0 to a 4.1 which means I can control OVER 10'000 LEDS OVER USB MUHAHAHAHAHA! | ||
|
||
Source code can be found [here](https://github.com/TheMariday/fcmega) if you are absolutely insane like me. | ||
|
||
And again, why are you here? Please don't tell me you're gonna make one of these and use it... | ||
|
||
Oh no. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Fadecandy Backend Instructions | ||
To use the Fadecandy backend, please ensure that you are running the Fadecandy server | ||
A fork of the Fadecandy repo can be found [here](https://github.com/TheMariday/fadecandy) | ||
|
||
Use | ||
`--backend fadecandy --server 127.0.0.1:7890` to enable this backend, adjusting the server IP and port where needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# PixelBlaze Backend Tutorial | ||
|
||
To use PixelBlaze with marimapper you first need to upload a pattern file to your controller. | ||
|
||
You can do this via the web UI by uploading [this file](https://github.com/TheMariday/marimapper/blob/main/marimapper/backends/pixelblaze/marimapper.epe) | ||
as a new pattern. | ||
|
||
Once this is done, run `marimapper_check_backend --backend pixelblaze` to test it. It should cause LED 0 to blink. | ||
|
||
By default, marimapper tools will use the address `4.3.2.1`, but this can be changed by using the `--server` argument. | ||
|
||
Once you've checked your PixelBlaze setup is talking nicely with marimapper, you can go ahead and start mapping! | ||
|
||
Once you're done, you can upload your 3D map to pixelblaze by running `marimapper_upload_mapping_to_pixelblaze` | ||
in the same folder as your `led_map_3d.csv`. | ||
|
||
Don't forget to add the `--server` argument if you've needed to change it in the previous steps | ||
|
||
Now you've learnt the PixelBlaze specifics, shoo! Back to the main README.md with you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# WLED Backend Tutorial | ||
|
||
WLED should work pretty much out of the box, test your backend with `marimapper_check_backend --backend wled`. It should cause LED 0 to blink. | ||
|
||
If you need to change the server address, use the `--server` argument | ||
|
||
Once you've checked your WLED setup is talking nicely with marimapper, you can go ahead and start mapping! | ||
|
||
More info about WLED can be found [here](https://kno.wled.ge/) | ||
|
||
Few, that was a short tutorial. Treat yourself to a biscuit for all your hard work! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Custom Backend Instructions | ||
|
||
Your backend isn't listed? You've your own LED driver? Well check you out clever-clogs! | ||
|
||
Luckily, writing your own custom backend is super simple with a dash of Python! | ||
|
||
Open a new python file called `my_backend.py` and copy the below stub into it. | ||
|
||
```python | ||
class Backend: | ||
|
||
def __init__(self): | ||
# connect to some device here! | ||
|
||
def get_led_count(self) -> int: | ||
# return the number of leds your system can control here | ||
|
||
def set_led(self, led_index: int, on: bool) -> None: | ||
# Write your code for controlling your LEDs here | ||
# It should turn on or off the LED at the led_index depending on the "on" variable | ||
# For example: | ||
# if on: | ||
# some_led_library.set_led(led_index, (255, 255, 255)) | ||
# else: | ||
# some_led_library.set_led(led_index, (0, 0, 0)) | ||
``` | ||
|
||
Fill out the blanks and check it by running `marimapper_check_backend --backend my_backend.py` in the same directory | ||
|
||
Once you've checked it works, you can run marimapper in the same directory with `marimapper --backend my_backend.py` and it will use your backend! | ||
|
||
If your backend needs any external libraries for example, `requests`, add them to marimapper with `pipx inject marimapper requests` | ||
|
||
If you think others would find your backend useful (behave), please drop me a Github Issue, | ||
find me on Telegram or open a pull request so we can add it into marimapper! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.