Arduino for Beginners: Essential Skills Every Maker Needs (Marnie Dunn's Library) by John Baichtal

Arduino for Beginners: Essential Skills Every Maker Needs (Marnie Dunn's Library) by John Baichtal

Author:John Baichtal
Language: eng
Format: epub
Publisher: Que Publishing
Published: 2014-02-08T16:00:00+00:00


void loop() {

light = analogRead(pspin) + 50; // adjust tolerences here

sound = analogRead(sspin) + 50; // adjust tolerences here

temp = analogRead(thspin) / 50; // adjust tolerences here

SB_CommandMode = B01; // Write to current control registers

SB_RedCommand = 127; // Full current

SB_GreenCommand = 127; // Full current

SB_BlueCommand = 127; // Full current

SB_SendPacket();

delay(2500);

SB_CommandMode = B00; // Write to PWM control registers

SB_RedCommand = sound;

SB_GreenCommand = light;

SB_BlueCommand = temp;

SB_SendPacket();



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.