#include "WProgram.h"#include "wiring.h"#include <Wire.h>#include "utility/twi.h"
Go to the source code of this file.
Classes | |
| struct | _blinkm_script_line | 
Typedefs | |
| typedef struct _blinkm_script_line | blinkm_script_line | 
Functions | |
| static void | BlinkM_begin () | 
| static void | BlinkM_beginWithPower () | 
| static void | BlinkM_beginWithPowerPins (byte pwrpin, byte gndpin) | 
| static int | BlinkM_checkAddress (byte addr) | 
| static void | BlinkM_fadeToHSB (byte addr, byte hue, byte saturation, byte brightness) | 
| static void | BlinkM_fadeToRandomHSB (byte addr, byte hrnd, byte srnd, byte brnd) | 
| static void | BlinkM_fadeToRandomRGB (byte addr, byte rrnd, byte grnd, byte brnd) | 
| static void | BlinkM_fadeToRGB (byte addr, byte red, byte grn, byte blu) | 
| static int8_t | BlinkM_findFirstI2CDevice () | 
| static int | BlinkM_getAddress (byte addr) | 
| static int | BlinkM_getInputs (byte addr, byte inputs[]) | 
| static int | BlinkM_getInputsO (byte addr) | 
| static void | BlinkM_getRGBColor (byte addr, byte *r, byte *g, byte *b) | 
| static int | BlinkM_getVersion (byte addr) | 
| static void | BlinkM_playScript (byte addr, byte script_id, byte reps, byte pos) | 
| static void | BlinkM_readScriptLine (byte addr, byte script_id, byte pos, blinkm_script_line *script_line) | 
| static int | BlinkM_receiveBytes (byte addr, byte *resp, byte len) | 
| static void | BlinkM_scanI2CBus (byte from, byte to, void(*callback)(byte add, byte result)) | 
| static void | BlinkM_sendCmd (byte addr, byte *cmd, int cmdlen) | 
| static void | BlinkM_setAddress (byte newaddress) | 
| static void | BlinkM_setFadeSpeed (byte addr, byte fadespeed) | 
| static void | BlinkM_setRGB (byte addr, byte red, byte grn, byte blu) | 
| static void | BlinkM_setScriptLengthReps (byte addr, byte script_id, byte len, byte reps) | 
| static void | BlinkM_setStartupParams (byte addr, byte mode, byte script_id, byte reps, byte fadespeed, byte timeadj) | 
| static void | BlinkM_setTimeAdj (byte addr, byte timeadj) | 
| static void | BlinkM_startPower () | 
| static void | BlinkM_startPowerWithPins (byte pwrpin, byte gndpin) | 
| static void | BlinkM_stopPower () | 
| static void | BlinkM_stopPowerWithPins (byte pwrpin, byte gndpin) | 
| static void | BlinkM_stopScript (byte addr) | 
| static void | BlinkM_writeScript (byte addr, byte script_id, byte len, byte reps, blinkm_script_line *lines) | 
| static void | BlinkM_writeScriptLine (byte addr, byte script_id, byte pos, byte dur, byte cmd, byte arg1, byte arg2, byte arg3) | 
| typedef struct _blinkm_script_line blinkm_script_line | 
| static void BlinkM_begin | ( | ) |  [static] | 
        
Definition at line 44 of file BlinkM_funcs.h.
| static void BlinkM_beginWithPower | ( | ) |  [static] | 
        
Definition at line 123 of file BlinkM_funcs.h.
| static void BlinkM_beginWithPowerPins | ( | byte | pwrpin, | 
| byte | gndpin | ||
| ) |  [static] | 
        
Definition at line 114 of file BlinkM_funcs.h.
| static int BlinkM_checkAddress | ( | byte | addr | ) |  [static] | 
        
Definition at line 199 of file BlinkM_funcs.h.
| static void BlinkM_fadeToHSB | ( | byte | addr, | 
| byte | hue, | ||
| byte | saturation, | ||
| byte | brightness | ||
| ) |  [static] | 
        
Definition at line 248 of file BlinkM_funcs.h.
| static void BlinkM_fadeToRandomHSB | ( | byte | addr, | 
| byte | hrnd, | ||
| byte | srnd, | ||
| byte | brnd | ||
| ) |  [static] | 
        
Definition at line 280 of file BlinkM_funcs.h.
| static void BlinkM_fadeToRandomRGB | ( | byte | addr, | 
| byte | rrnd, | ||
| byte | grnd, | ||
| byte | brnd | ||
| ) |  [static] | 
        
Definition at line 270 of file BlinkM_funcs.h.
| static void BlinkM_fadeToRGB | ( | byte | addr, | 
| byte | red, | ||
| byte | grn, | ||
| byte | blu | ||
| ) |  [static] | 
        
Definition at line 237 of file BlinkM_funcs.h.
| static int8_t BlinkM_findFirstI2CDevice | ( | ) |  [static] | 
        
Definition at line 75 of file BlinkM_funcs.h.
| static int BlinkM_getAddress | ( | byte | addr | ) |  [static] | 
        
Definition at line 169 of file BlinkM_funcs.h.
| static int BlinkM_getInputs | ( | byte | addr, | 
| byte | inputs[] | ||
| ) |  [static] | 
        
Definition at line 428 of file BlinkM_funcs.h.
| static int BlinkM_getInputsO | ( | byte | addr | ) |  [static] | 
        
Definition at line 412 of file BlinkM_funcs.h.
| static void BlinkM_getRGBColor | ( | byte | addr, | 
| byte * | r, | ||
| byte * | g, | ||
| byte * | b | ||
| ) |  [static] | 
        
Definition at line 291 of file BlinkM_funcs.h.
| static int BlinkM_getVersion | ( | byte | addr | ) |  [static] | 
        
Definition at line 183 of file BlinkM_funcs.h.
| static void BlinkM_playScript | ( | byte | addr, | 
| byte | script_id, | ||
| byte | reps, | ||
| byte | pos | ||
| ) |  [static] | 
        
Definition at line 305 of file BlinkM_funcs.h.
| static void BlinkM_readScriptLine | ( | byte | addr, | 
| byte | script_id, | ||
| byte | pos, | ||
| blinkm_script_line * | script_line | ||
| ) |  [static] | 
        
Definition at line 337 of file BlinkM_funcs.h.
| static int BlinkM_receiveBytes | ( | byte | addr, | 
| byte * | resp, | ||
| byte | len | ||
| ) |  [static] | 
        
Definition at line 140 of file BlinkM_funcs.h.
| static void BlinkM_scanI2CBus | ( | byte | from, | 
| byte | to, | ||
| void(*)(byte add, byte result) | callback | ||
| ) |  [static] | 
        
Definition at line 62 of file BlinkM_funcs.h.
| static void BlinkM_sendCmd | ( | byte | addr, | 
| byte * | cmd, | ||
| int | cmdlen | ||
| ) |  [static] | 
        
Definition at line 129 of file BlinkM_funcs.h.
| static void BlinkM_setAddress | ( | byte | newaddress | ) |  [static] | 
        
Definition at line 153 of file BlinkM_funcs.h.
| static void BlinkM_setFadeSpeed | ( | byte | addr, | 
| byte | fadespeed | ||
| ) |  [static] | 
        
Definition at line 217 of file BlinkM_funcs.h.
| static void BlinkM_setRGB | ( | byte | addr, | 
| byte | red, | ||
| byte | grn, | ||
| byte | blu | ||
| ) |  [static] | 
        
Definition at line 259 of file BlinkM_funcs.h.
| static void BlinkM_setScriptLengthReps | ( | byte | addr, | 
| byte | script_id, | ||
| byte | len, | ||
| byte | reps | ||
| ) |  [static] | 
        
Definition at line 324 of file BlinkM_funcs.h.
| static void BlinkM_setStartupParams | ( | byte | addr, | 
| byte | mode, | ||
| byte | script_id, | ||
| byte | reps, | ||
| byte | fadespeed, | ||
| byte | timeadj | ||
| ) |  [static] | 
        
Definition at line 396 of file BlinkM_funcs.h.
| static void BlinkM_setTimeAdj | ( | byte | addr, | 
| byte | timeadj | ||
| ) |  [static] | 
        
Definition at line 228 of file BlinkM_funcs.h.
| static void BlinkM_startPower | ( | ) |  [static] | 
        
Definition at line 101 of file BlinkM_funcs.h.
| static void BlinkM_startPowerWithPins | ( | byte | pwrpin, | 
| byte | gndpin | ||
| ) |  [static] | 
        
Definition at line 87 of file BlinkM_funcs.h.
| static void BlinkM_stopPower | ( | ) |  [static] | 
        
Definition at line 107 of file BlinkM_funcs.h.
| static void BlinkM_stopPowerWithPins | ( | byte | pwrpin, | 
| byte | gndpin | ||
| ) |  [static] | 
        
Definition at line 95 of file BlinkM_funcs.h.
| static void BlinkM_stopScript | ( | byte | addr | ) |  [static] | 
        
Definition at line 316 of file BlinkM_funcs.h.
| static void BlinkM_writeScript | ( | byte | addr, | 
| byte | script_id, | ||
| byte | len, | ||
| byte | reps, | ||
| blinkm_script_line * | lines | ||
| ) |  [static] | 
        
Definition at line 378 of file BlinkM_funcs.h.
| static void BlinkM_writeScriptLine | ( | byte | addr, | 
| byte | script_id, | ||
| byte | pos, | ||
| byte | dur, | ||
| byte | cmd, | ||
| byte | arg1, | ||
| byte | arg2, | ||
| byte | arg3 | ||
| ) |  [static] | 
        
Definition at line 355 of file BlinkM_funcs.h.