Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 802 Bytes

index.md

File metadata and controls

26 lines (22 loc) · 802 Bytes

DivoomControl

This library simplifies communication with a Divoom device by making simple API calls.

Not all interfaces are currently implemented, but this will be added over time

This library is also available via Nuget.org.

Supported Devices

  • Divoom Pixoo64 (tested)
  • Divoom Pixoo16 (not tested)

Example

This example shows a random image from the favorites list on the display

var devices = await DivoomControl.Main.getAvailableDevices();
var random = new Random();
devices.ForEach(async device =>
{
    Console.WriteLine(device);
    var images = await device.getLikedImagesAsync();
    if (images.Count > 0)
    {
        await device.setImageFromCloudAsync(images[random.Next(0, images.Count - 1)].FileId);
    }
});