Add RGB LED code
This commit is contained in:
parent
66bc1ba18f
commit
077cb6a2e1
Binary file not shown.
|
@ -0,0 +1,111 @@
|
||||||
|
:100000000C945C000C9479000C9479000C947900A9
|
||||||
|
:100010000C9479000C9479000C9479000C9479007C
|
||||||
|
:100020000C9479000C9479000C9479000C9479006C
|
||||||
|
:100030000C9479000C9479000C9479000C9479005C
|
||||||
|
:100040000C949C010C9479000C9479000C94790028
|
||||||
|
:100050000C9479000C9479000C9479000C9479003C
|
||||||
|
:100060000C9479000C947900000000080002010053
|
||||||
|
:100070000003040700000000000000000000000072
|
||||||
|
:10008000250028002B0000000000240027002A0083
|
||||||
|
:10009000040404040404040402020202020203032E
|
||||||
|
:1000A0000303030301020408102040800102040836
|
||||||
|
:1000B000102001020408102011241FBECFEFD8E049
|
||||||
|
:1000C000DEBFCDBF11E0A0E0B1E0EEECF6E002C093
|
||||||
|
:1000D00005900D92A430B107D9F721E0A4E0B1E07A
|
||||||
|
:1000E00001C01D92AD30B207E1F70E94E6010C9409
|
||||||
|
:1000F00065030C94000090E0FC01EC55FF4F249147
|
||||||
|
:1001000080579F4FFC018491882399F090E0880FDD
|
||||||
|
:10011000991FFC01EA57FF4FA591B491FC01E458E7
|
||||||
|
:10012000FF4F859194918FB7F894EC91E22BEC936B
|
||||||
|
:100130008FBF089590E0FC01E859FF4F2491FC0126
|
||||||
|
:10014000EC55FF4F3491FC01E057FF4FE491EE2353
|
||||||
|
:10015000C9F0222339F0233001F1A8F4213019F13C
|
||||||
|
:10016000223029F1F0E0EE0FFF1FE458FF4FA59178
|
||||||
|
:10017000B4918FB7F894EC91611126C030953E236D
|
||||||
|
:100180003C938FBF08952730A9F02830C9F0243060
|
||||||
|
:1001900049F7809180008F7D03C0809180008F7728
|
||||||
|
:1001A00080938000DFCF84B58F7784BDDBCF84B5AB
|
||||||
|
:1001B0008F7DFBCF8091B0008F778093B000D2CF3E
|
||||||
|
:1001C0008091B0008F7DF9CF3E2BDACF1F93CF9374
|
||||||
|
:1001D000DF93182FEB010E947B00209739F460E039
|
||||||
|
:1001E000812FDF91CF911F910C949A00CF3FD105C1
|
||||||
|
:1001F00011F461E0F5CFE12FF0E0E859FF4FE49111
|
||||||
|
:10020000E33031F140F4E130B1F0E230E1F0C038F8
|
||||||
|
:10021000D1057CF7E4CFE73029F1E83059F1E4303B
|
||||||
|
:10022000B1F780918000806280938000D0938B0032
|
||||||
|
:10023000C0938A0004C084B5806884BDC7BDDF91C7
|
||||||
|
:10024000CF911F91089584B5806284BDC8BDF7CF5A
|
||||||
|
:1002500080918000806880938000D0938900C09353
|
||||||
|
:100260008800EDCF8091B00080688093B000C0938B
|
||||||
|
:10027000B300E5CF8091B00080628093B000C0935E
|
||||||
|
:10028000B400DDCF3FB7F8948091090190910A0145
|
||||||
|
:10029000A0910B01B0910C0126B5A89B05C02F3F82
|
||||||
|
:1002A00019F00196A11DB11D3FBFBA2FA92F982F9C
|
||||||
|
:1002B0008827BC01CD01620F711D811D911D42E097
|
||||||
|
:1002C000660F771F881F991F4A95D1F708958F925F
|
||||||
|
:1002D0009F92AF92BF92CF92DF92EF92FF920E94D5
|
||||||
|
:1002E00042014B015C0188ECC82ED12CE12CF12C91
|
||||||
|
:1002F0000E944201681979098A099B09683E734086
|
||||||
|
:1003000081059105A8F321E0C21AD108E108F1089E
|
||||||
|
:1003100088EE880E83E0981EA11CB11CC114D10484
|
||||||
|
:10032000E104F10429F7FF90EF90DF90CF90BF90A8
|
||||||
|
:10033000AF909F908F9008951F920F920FB60F92DB
|
||||||
|
:1003400011242F933F938F939F93AF93BF938091EB
|
||||||
|
:10035000050190910601A0910701B091080130912B
|
||||||
|
:10036000040123E0230F2D3758F50196A11DB11D7F
|
||||||
|
:10037000209304018093050190930601A093070147
|
||||||
|
:10038000B09308018091090190910A01A0910B019D
|
||||||
|
:10039000B0910C010196A11DB11D809309019093AC
|
||||||
|
:1003A0000A01A0930B01B0930C01BF91AF919F91F3
|
||||||
|
:1003B0008F913F912F910F900FBE0F901F90189526
|
||||||
|
:1003C00026E8230F0296A11DB11DD2CF789484B5E3
|
||||||
|
:1003D000826084BD84B5816084BD85B5826085BD41
|
||||||
|
:1003E00085B5816085BD80916E00816080936E00CF
|
||||||
|
:1003F00010928100809181008260809381008091C1
|
||||||
|
:100400008100816080938100809180008160809371
|
||||||
|
:1004100080008091B10084608093B1008091B00031
|
||||||
|
:1004200081608093B00080917A00846080937A002C
|
||||||
|
:1004300080917A00826080937A0080917A00816056
|
||||||
|
:1004400080937A0080917A00806880937A0010927D
|
||||||
|
:10045000C10083E00E947B0085E00E947B0086E073
|
||||||
|
:100460000E947B00C12CD12C7601CA94C0E0D0E060
|
||||||
|
:100470000E94AA02A70196010E94020383E00E9443
|
||||||
|
:10048000E6000E9467010E94AA02A70196010E944D
|
||||||
|
:10049000020385E00E94E6000E9467010E94AA0212
|
||||||
|
:1004A000A70196010E94020386E00E94E6000E94D6
|
||||||
|
:1004B00067012097E9F20E940000DACF8F929F92A5
|
||||||
|
:1004C000AF92BF92CF92DF92EF92FF92CF93DF93E2
|
||||||
|
:1004D000EC01688179818A819B81611571058105B3
|
||||||
|
:1004E000910521F464E279ED8BE597E02DE133EF9E
|
||||||
|
:1004F00041E050E00E94020349015A019B01AC0116
|
||||||
|
:10050000A7EAB1E40E9421036B017C01ACEEB4EFD9
|
||||||
|
:10051000A50194010E942F03C60ED71EE81EF91EE6
|
||||||
|
:10052000F7FE06C081E0C81AD108E10880E8F80AA1
|
||||||
|
:10053000C882D982EA82FB82C701B6019F77DF9128
|
||||||
|
:10054000CF91FF90EF90DF90CF90BF90AF909F90B2
|
||||||
|
:100550008F9008958F929F92AF92BF92CF92DF9229
|
||||||
|
:10056000EF92FF9260910001709101018091020170
|
||||||
|
:1005700090910301611571058105910521F464E2F3
|
||||||
|
:1005800079ED8BE597E02DE133EF41E050E00E94FB
|
||||||
|
:10059000020349015A019B01AC01A7EAB1E40E94A0
|
||||||
|
:1005A00021036B017C01ACEEB4EFA50194010E9424
|
||||||
|
:1005B0002F03C60ED71EE81EF91EF7FE06C081E007
|
||||||
|
:1005C000C81AD108E10880E8F80AC0920001D09268
|
||||||
|
:1005D0000101E0920201F0920301C701B6019F7789
|
||||||
|
:1005E000FF90EF90DF90CF90BF90AF909F908F9053
|
||||||
|
:1005F000089560930001709301018093020190932C
|
||||||
|
:1006000003010895052E97FB1EF400940E94190320
|
||||||
|
:1006100057FD07D00E94340307FC03D04EF40C941E
|
||||||
|
:10062000190350954095309521953F4F4F4F5F4F9F
|
||||||
|
:10063000089590958095709561957F4F8F4F9F4F4E
|
||||||
|
:1006400008950E945603A59F900DB49F900DA49FFE
|
||||||
|
:10065000800D911D11240895B7FF0C9421030E9471
|
||||||
|
:100660002103821B930B0895A1E21A2EAA1BBB1B28
|
||||||
|
:10067000FD010DC0AA1FBB1FEE1FFF1FA217B3076E
|
||||||
|
:10068000E407F50720F0A21BB30BE40BF50B661F84
|
||||||
|
:10069000771F881F991F1A9469F760957095809548
|
||||||
|
:1006A00090959B01AC01BD01CF010895A29FB001BF
|
||||||
|
:1006B000B39FC001A39F700D811D1124911DB29F96
|
||||||
|
:0E06C000700D811D1124911D0895F894FFCF37
|
||||||
|
:0406CE000100000027
|
||||||
|
:00000001FF
|
|
@ -0,0 +1,19 @@
|
||||||
|
// RGB LED
|
||||||
|
int red = 3;
|
||||||
|
int blue = 5;
|
||||||
|
int green = 6;
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
pinMode(red, OUTPUT);
|
||||||
|
pinMode(blue, OUTPUT);
|
||||||
|
pinMode(green, OUTPUT);
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
analogWrite(red, random(0,255));
|
||||||
|
delay(200);
|
||||||
|
analogWrite(blue, random(0,255));
|
||||||
|
delay(200);
|
||||||
|
analogWrite(green, random(0,255));
|
||||||
|
delay(200);
|
||||||
|
}
|
Loading…
Reference in New Issue