Giter Site home page Giter Site logo

lighttoserialrelight's Introduction

LightToSerialRelight

A Beat Saber mod that allows you to control your Arduino LED Strip based on Beat Saber events.

This mod is updated version of the mod created by D3rPole. It allows you to communicate with Arduino based on events to display preset animations and patterns on your wb2812 adressable LED strip. The mod automatically gets custom colors from Beat Saber and makes them fully saturated before reaching arduino, it may be the reason if some colors on LED strip get displayed incorrectly. Most of the times it works as intended.

Gameplay

Mod installation

Just download the .dll file and drop it into your BeatSaber folder/Plugins.

You will also need other mods, that is BeatSaberMarkupLanguage and BeatSaberUtils.

Setup

Before you play Beat Saber you will need to download arduino program and upload it to your board. Set all the settings in the top part to match your setup, that includes:

#define LED_PIN     9
#define NUM_LEDS    120

and probably:

#define LED_TYPE    WS2811
#define COLOR_ORDER GRB

Can't tell if this program works with other types of LEDs.

You will also need to install FastLED library. To do so go to your Arduino IDE -> Tools -> Manage Libraries -> Search for: FastLED -> Select version 3.3.0 -> Click install

Default baudrate (1200) was tested to work fine and there is no need to use any faster ones. You can do it anyway, there is this functionality. After selecting your port in game setting (you can find which one in Arduino IDE) and clicking apply the LED strip should turn on to white-ish palette with colored ends and with a breathing animation, it's a standby signal telling you that connection was successful.

Other information

Remember to report any bugs. If you have any question regarding modding don't hestitate to ask, it wasn't easy at the start for me too.

Special thanks to:

  • D3rPole, for idea and old code that got basically rewritten from beginning.
  • Shadnix-was-taken whos code was used for my learning :)
  • Guys at Beat Saber Modding Group Discord. They are the best <3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.