diff options
author | Blaise Thompson <blaise@untzag.com> | 2021-01-25 12:15:05 -0600 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2021-01-25 12:15:05 -0600 |
commit | 9d678fbace2e4931e39ab5b95b2ec7493a18f549 (patch) | |
tree | 6167314f18a55db9638f6bc29849678c616043f0 /digital-controller/firmware | |
parent | 54c117b6e8d65e9955a93de95a62e0f9ede7935c (diff) |
digital-driver readme
Diffstat (limited to 'digital-controller/firmware')
-rw-r--r-- | digital-controller/firmware/firmware.ino | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/digital-controller/firmware/firmware.ino b/digital-controller/firmware/firmware.ino index 7693835..86e4bb0 100644 --- a/digital-controller/firmware/firmware.ino +++ b/digital-controller/firmware/firmware.ino @@ -13,11 +13,11 @@ void setup() void loop() { - + for( int a=10; a<=255; a++ ){ //generate buffer containing data to send via I2C uint8_t buf[1]; - buf[0] = 255; // adjusting this byte changes fan speed. Can be adjusted from 0 to 256. - buf[1] = 0; // adjusting this byte changes LED intensity. Can be adjusted from 0 to 256. + buf[0] = 255-a; // adjusting this byte changes fan speed. Can be adjusted from 0 to 256. + buf[1] = a; // adjusting this byte changes LED intensity. Can be adjusted from 0 to 256. // send buffer Wire.beginTransmission(I2C_SLAVE_ADDR); @@ -31,5 +31,6 @@ void loop() Wire.requestFrom(I2C_SLAVE_ADDR, 1); // delay 1 second so user can watch results - delay(100); + delay(50); + } } |