From c081c607e8d0abc12ce52e7a385cb40ba647215e Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 15 Nov 2019 23:54:13 +0100 Subject: [PATCH] Add LED intensity code --- .../LED Intensity.arduino.avr.uno.elf | Bin 0 -> 19048 bytes .../LED Intensity.arduino.avr.uno.hex | 85 ++++++++++++++++++ LED Intensity/LED Intensity.ino | 15 ++++ 3 files changed, 100 insertions(+) create mode 100755 LED Intensity/LED Intensity.arduino.avr.uno.elf create mode 100644 LED Intensity/LED Intensity.arduino.avr.uno.hex create mode 100644 LED Intensity/LED Intensity.ino diff --git a/LED Intensity/LED Intensity.arduino.avr.uno.elf b/LED Intensity/LED Intensity.arduino.avr.uno.elf new file mode 100755 index 0000000000000000000000000000000000000000..4b43ffbe381afccfe59ab93ccee98c5783f10190 GIT binary patch literal 19048 zcmd6Pdwg8Qb^qLbNGnU$!#1|DElaY5EI+hb$?^j*wq;2+@=J;y*rcS(N?J*arCp(2 z`9Xp$8$*Ocu;rD)D~$}H1ZWBd1EBbg<`RAnU_OePI(y)mnS=a-GC}po>P?ft#j}GZ0r}Oet0Tp?D*I-W54<5 z55^p)-AAV$JMMcX_4SJd5;ace9(%&~Z0egAGlyH?=|hf;VIhu=ePq1dGErYNG_ZZN z{v+ei&|u*M7mkh%W<8Mik@1`D6ZL;S^xV)##`zr+^>+>p4;}f&hr@3Vy|v`+_>ohd z5!U|IjjXM#RH7V1o%2KQ6n_80g2JmW6#9(u$KNmTT{*tMw`lyr*gIJhd9+2V%2pt! z__S|iP2p;3aiQ;t3njkqUnug`T^tx15Jzrzo|fhAf%t%Udjabn106hHs?L+;aMYp=XueCgrb zXL8q`da3M*vir*h7rt!#&}hxNHTOX7Q11G%j;!5zgLx0+Z5sK}MbAjyv8-cRFJv9d zDJqMvjUS1R#-EO#iVqAKuMV!ns;>eNb#=^4cUuA*31Q3GA1vX6aR+&z{#{8@4I{MFu?qD{kvV~yUx(p#4r|C&8^dhE3^ z-?7h08w2fD&AWd05yohbI6k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fF5jq2$Bbs{c2j`Rw0h%Fm+YM~WP60}(sVQse&(JjaVZQ$9i7 zycmxR2v|p54v`Q3EsI6_%UIF8sJ{;UV{A-b4#B@j;m5!h-)htE1^>1t9{|s-Jv)&%&*Xe@iFU|!e?Ega z@W%^Y`OxRb^WR0P0nhq;6XD9ii}Aim)2Dm{a^2p;HlBZS#Mcg<2QuD&MSF?yFl1YL zeXb1*AuqP~YwDvOFY*Gu>iXEEH#PXL_xlyGMG-iRl0>Yh7Y7!dlID4j$(RQdUVIWA zjp1am*IV%i&mYW#8EYq>IC8naOreuTHPFVI89XitB4S11}<2F5&DsbGWsm*VAsYpR;7{20l)`fdI# zwc9o}t5L?WT2F5Tr)|Ng*++jc7Tlv9*WfF)L<8k)pf%9$$N3Eo0Q-BX*B*!k{M`|t z!EpPe?h25)^(3M0H0enjD$qc1R1`HWVn9r4OMUg`%k;wP|MJP^%h_pp?C1Yi=+I|4l6ON5XvHq~w1 zR@L0nSbLeS@Q5ri6tdY!?_Oyb6&VN>AbBpBFv=mqe2a!SK3%~;Z?Y3wU#QU1RNMFm zeXzpG5L$Vz$P}JyO*)qT)U(BGO*QkA086Xy*;r&E6P}(D!VL7cFimA z6EDU@VD0PShc?0+j>LlA&TzjMXY1bf;I2?xFcj|KY7)eeI=&VOgz-g>#U_bbTl<2$ zED7&Oi^k&AlVIS2g?C5VEYdV97xq6Qn+qL2h2*mV&ky%ZcpEBSoW4ehcu!qFSd*SgduTJ#>9PqzMDA>y>-B>OFqWHY(uha zOBoz3(E#(&EA=m4qGGfPA#A~czUX~tXFUQQp uGd5!XVJV@s^jKPBP4PPXwclyPIvez2B)UqPA<*rK^*Btx*jbll@Bab#>iEI{ literal 0 HcmV?d00001 diff --git a/LED Intensity/LED Intensity.arduino.avr.uno.hex b/LED Intensity/LED Intensity.arduino.avr.uno.hex new file mode 100644 index 0000000..6be2965 --- /dev/null +++ b/LED Intensity/LED Intensity.arduino.avr.uno.hex @@ -0,0 +1,85 @@ +:100000000C945C000C9479000C9479000C947900A9 +:100010000C9479000C9479000C9479000C9479007C +:100020000C9479000C9479000C9479000C9479006C +:100030000C9479000C9479000C9479000C9479005C +:100040000C940B010C9479000C9479000C947900B9 +:100050000C9479000C9479000C9479000C9479003C +:100060000C9479000C947900000000080002010053 +:100070000003040700000000000000000000000072 +:10008000250028002B0000000000240027002A0083 +:10009000040404040404040402020202020203032E +:1000A0000303030301020408102040800102040836 +:1000B000102001020408102011241FBECFEFD8E049 +:1000C000DEBFCDBF11E0A0E0B1E0EAE3F5E002C0A1 +:1000D00005900D92A030B107D9F721E0A0E0B1E082 +:1000E00001C01D92A930B207E1F70E9455010C949E +:1000F0009B020C94000090E0FC01EC55FF4F249112 +:1001000080579F4FFC018491882399F090E0880FDD +:10011000991FFC01EA57FF4FA591B491FC01E458E7 +:10012000FF4F859194918FB7F894EC91E22BEC936B +:100130008FBF089590E0FC01E859FF4F2491FC0126 +:10014000EC55FF4F3491FC01E057FF4FE491EE2353 +:10015000C9F0222339F0233001F1A8F4213019F13C +:10016000223029F1F0E0EE0FFF1FE458FF4FA59178 +:10017000B4918FB7F894EC91611126C030953E236D +:100180003C938FBF08952730A9F02830C9F0243060 +:1001900049F7809180008F7D03C0809180008F7728 +:1001A00080938000DFCF84B58F7784BDDBCF84B5AB +:1001B0008F7DFBCF8091B0008F778093B000D2CF3E +:1001C0008091B0008F7DF9CF3E2BDACF3FB7F89406 +:1001D0008091050190910601A0910701B09108015D +:1001E00026B5A89B05C02F3F19F00196A11DB11D92 +:1001F0003FBFBA2FA92F982F8827BC01CD01620FCE +:10020000711D811D911D42E0660F771F881F991F88 +:100210004A95D1F708951F920F920FB60F921124AD +:100220002F933F938F939F93AF93BF93809101013F +:1002300090910201A0910301B0910401309100015D +:1002400023E0230F2D3758F50196A11DB11D2093F2 +:1002500000018093010190930201A0930301B093E8 +:1002600004018091050190910601A0910701B091D0 +:1002700008010196A11DB11D80930501909306010F +:10028000A0930701B0930801BF91AF919F918F9107 +:100290003F912F910F900FBE0F901F90189526E859 +:1002A000230F0296A11DB11DD2CF789484B5826030 +:1002B00084BD84B5816084BD85B5826085BD85B50A +:1002C000816085BD80916E00816080936E00109288 +:1002D0008100809181008260809381008091810003 +:1002E0008160809381008091800081608093800094 +:1002F0008091B10084608093B1008091B0008160F2 +:100300008093B00080917A00846080937A0080911D +:100310007A00826080937A0080917A008160809375 +:100320007A0080917A00806880937A001092C100F0 +:1003300089E00E947B0090E4392E44244A9423E013 +:10034000522E612C712C01E710E0C0E0D0E0309219 +:100350007C0080917A00806480937A0080917A009A +:1003600086FDFCCF80917800A0917900BA2FA82F4C +:100370002FEF30E00E949402A30192010E944402F8 +:10038000D22EC32EE22EF32E89E00E947B00E114D0 +:10039000F10471F560E089E00E949A000E94E60095 +:1003A0004B015C018AE0C82ED12CE12CF12C0E947B +:1003B000E600681979098A099B09683E734081053E +:1003C0009105A8F321E0C21AD108E108F10888EEEE +:1003D000880E83E0981EA11CB11CC114D104E10455 +:1003E000F10429F7209709F4B2CF0E940000AFCFA3 +:1003F0002FEFE216F10411F461E0CDCFF801849102 +:10040000833031F148F48130C9F08230E1F0F0E816 +:10041000EF16F1048CF7BECF873031F1883061F1EF +:100420008430A9F7809180008062809380008D2DB8 +:100430009C2D90938B0080938A00B0CF84B5806808 +:1004400084BDD7BCABCF84B5806284BDD8BCA6CFF9 +:10045000809180008068809380008D2D9C2D9093EA +:100460008900809388009ACF8091B0008068809343 +:10047000B000D092B30092CF8091B00080628093A0 +:10048000B000D092B4008ACF052E97FB1EF40094E2 +:100490000E945B0257FD07D00E94630207FC03D055 +:1004A0004EF40C945B0250954095309521953F4F4A +:1004B0004F4F5F4F089590958095709561957F4F50 +:1004C0008F4F9F4F0895A1E21A2EAA1BBB1BFD015F +:1004D0000DC0AA1FBB1FEE1FFF1FA217B307E40723 +:1004E000F50720F0A21BB30BE40BF50B661F771F7B +:1004F000881F991F1A9469F760957095809590955B +:100500009B01AC01BD01CF010895A29FB001B39F33 +:10051000C001A39F700D811D1124911DB29F700D0C +:10052000811D1124911D08950E948502B7FF089531 +:0A053000821B930B0895F894FFCF8F +:00000001FF diff --git a/LED Intensity/LED Intensity.ino b/LED Intensity/LED Intensity.ino new file mode 100644 index 0000000..8421f2a --- /dev/null +++ b/LED Intensity/LED Intensity.ino @@ -0,0 +1,15 @@ +// LED Intensity Control +int LED = 9; +int intensity = 0; +int potentionmeterValue = 0; +int potentiometerPin = A0; +void setup() { + pinMode(LED, OUTPUT); +} + +void loop() { + potentionmeterValue = analogRead(potentiometerPin); + intensity = map(potentionmeterValue, 0, 1023, 0, 255); + analogWrite(LED, intensity); + delay(10); +}