Merge branch 'Marlin_v1' of https://github.com/ErikZalm/Marlin into Marlin_v1
	
		
	
				
					
				
			
						commit
						24c6b2ab35
					
				| @ -0,0 +1,24 @@ | |||||||
|  | /*
 | ||||||
|  |   BlinkM.cpp - Library for controlling a BlinkM over i2c | ||||||
|  |   Created by Tim Koster, August 21 2013. | ||||||
|  | */ | ||||||
|  | #if (ARDUINO >= 100) | ||||||
|  |   # include "Arduino.h" | ||||||
|  | #else | ||||||
|  |   # include "WProgram.h" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|  | #include "BlinkM.h" | ||||||
|  | 
 | ||||||
|  | void SendColors(byte red, byte grn, byte blu) | ||||||
|  | { | ||||||
|  |   Wire.begin();  | ||||||
|  |   Wire.beginTransmission(0x09); | ||||||
|  |   Wire.write('o');                    //to disable ongoing script, only needs to be used once
 | ||||||
|  |   Wire.write('n'); | ||||||
|  |   Wire.write(red); | ||||||
|  |   Wire.write(grn); | ||||||
|  |   Wire.write(blu); | ||||||
|  |   Wire.endTransmission(); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| @ -0,0 +1,14 @@ | |||||||
|  | /*
 | ||||||
|  |   BlinkM.h | ||||||
|  |   Library header file for BlinkM library | ||||||
|  |  */ | ||||||
|  | #if (ARDUINO >= 100) | ||||||
|  |   # include "Arduino.h" | ||||||
|  | #else | ||||||
|  |   # include "WProgram.h" | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|  | #include "Wire.h" | ||||||
|  | 
 | ||||||
|  | void SendColors(byte red, byte grn, byte blu); | ||||||
|  | 
 | ||||||
					Loading…
					
					
				
		Reference in new issue
	
	 Erik van der Zalm
						Erik van der Zalm