Skip to content

Commit

Permalink
version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
The SZ committed Oct 14, 2023
1 parent bb235ee commit 041057e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
Control LED Strips that use the 'MagicStrip' [iOS](https://apps.apple.com/us/app/magicstrip-rgb/id1190522748)/[Android](https://play.google.com/store/apps/details?id=com.jtkj.magicstrip) and 'Zengge' [Android](https://play.google.com/store/apps/details?id=com.zengge.blev2) app.

## Supported Devices
Tested with a Bluetooth device named 'HTZM', but should work also with 'JMC-A', 'JMC-B', 'MAGIC_SHOE', 'MAGIC_LAMP', 'LCF', 'CoolStripMic', 'CRGB', 'FS0001' and 'FS0002' devices. Further devices starting with the Bluetooth device name 'LEDnetWF'.
Two different protocols/devices are supported:
- Tested with a Bluetooth device named 'HTZM', but should work also with 'JMC-A', 'JMC-B', 'MAGIC_SHOE', 'MAGIC_LAMP', 'LCF', 'CoolStripMic', 'CRGB', 'FS0001' and 'FS0002' devices.
- Devices starting with the Bluetooth device name 'LEDnetWF'.

## Demo
See [example/example.html](example/example.html) for usage.
Expand Down Expand Up @@ -50,3 +52,6 @@ Set the animation speed between 0 (fastest) and 255 (slowest) for MagicStrip or

## License
[GNU General Public License v3.0](LICENSE.md)

## Acknowledgement
https://github.com/8none1/zengge_lednetwf did the protocol reverse engineering on the LEDnetWF protocol.
4 changes: 2 additions & 2 deletions dist/BluetoothLedStrip.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/BluetoothLedStrip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export namespace BluetoothLedStrip

export enum DeviceType
{
UNKNWON,
UNKNOWN,
MAGIC_STRIP,
LED_NET_WF,
};
Expand All @@ -24,7 +24,7 @@ export namespace BluetoothLedStrip

export class Device
{
deviceType: DeviceType = DeviceType.UNKNWON;
deviceType: DeviceType = DeviceType.UNKNOWN;
counter = 0;
lastMode: number = 1;
lastBrightness: number = 100;
Expand Down

0 comments on commit 041057e

Please sign in to comment.