Új hozzászólás Aktív témák

  • tomy_cz

    senior tag

    válasz lezso6 #63 üzenetére

    Most éppen kipróbáltam a maradék leddel, ezen 79db van egybefüggően saját forrasztások nélkül, megtápláltam ugyanazzal a táppal és ezzel is vibrál...
    Konfig minden ugyanaz nem állítottam át semmit sem.

    Boblight részlet:
    [device]
    name AmbiLight
    type momo
    output /dev/com3
    channels 150
    prefix 41 64 61 00 47 12
    interval 20000
    rate 500000
    debug off
    delayafteropen 100000

    Sketch részlet:
    #define STARTCOLOR 0x333333 // LED colors at start
    #define BLACK 0x000000 // LED color BLACK

    #define DATAPIN 13 // Datapin default 5
    #define LEDCOUNT 71 // Number of LEDs used for boblight
    // LEDCOUNT value is local value in Arduino sketch, for hyperion it doesn't matter it sends prefx characters according to hyperion config
    #define SHOWDELAY 100 // Delay in micro seconds before showing default 200
    #define BAUDRATE 500000// Serial port speed, 460800 tested with Arduino Uno R3 23400 za MEGA, 115200 nano , default 500000

    #define BRIGHTNESS 70 // Max. brightness in %
    //Hyperion sends prefix characters based on number of LEDs in config file
    // e.g. for 181 LEDs it will send 0xB4 and cheksum 0xE1
    // keep in mind if you are using boblight config to calculate prefix that Boblight counts diodes from 1 and Hyperion from 0
    // if you have problems try +1 or -1 diodes when generating prefix characters
    // values to save some time: 178 B1 E4, 180 B3E6, 181 B4E1, 182 B5E0
    //hyperion code
    //_ledBuffer[3] = ((ledValues.size() - 1) >> 8) & 0xFF; // LED count high byte
    // _ledBuffer[4] = (ledValues.size() - 1) & 0xFF; // LED count low byte
    // _ledBuffer[5] = _ledBuffer[3] ^ _ledBuffer[4] ^ 0x55; // Checksum
    const char prefix[] = {0x41, 0x64, 0x61, 0x00, 0x47, 0x12}; // Start prefix ADA

    Játszak a rate/baudrate értékkel?
    Próbáltam egyelőre 460801 és 460799 de már egyikkel sem működik csak a 460800-al és a 500000-el.

    UPDATE:
    230400-el sokkal jobb!! Két zöldes led világít folymatosan középtájon ezt még ki kellene szedni valahogy...

    [ Szerkesztve ]

    http://phmegbizhatosag.atw.hu/phtabla.php?nev=tomy_cz

Új hozzászólás Aktív témák