From 129a9e6e6f3c0f49837d9979f8a2a07d23b42700 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 15 Nov 2019 23:52:50 +0100 Subject: [PATCH] Add Analog Buzzer code --- .../Analog Buzzer.arduino.avr.uno.elf | Bin 0 -> 15060 bytes .../Analog Buzzer.arduino.avr.uno.hex | 63 ++++++++++++++++++ Analog Buzzer/Analog Buzzer.ino | 14 ++++ 3 files changed, 77 insertions(+) create mode 100755 Analog Buzzer/Analog Buzzer.arduino.avr.uno.elf create mode 100644 Analog Buzzer/Analog Buzzer.arduino.avr.uno.hex create mode 100644 Analog Buzzer/Analog Buzzer.ino diff --git a/Analog Buzzer/Analog Buzzer.arduino.avr.uno.elf b/Analog Buzzer/Analog Buzzer.arduino.avr.uno.elf new file mode 100755 index 0000000000000000000000000000000000000000..f0f21dbcce7c224fbd9784e2c23f250462822afc GIT binary patch literal 15060 zcmd5@X>?r0m9E!|)NRRHEbj|yS+*oEYPIAYjBRbUw{F#|SM^@|aN~~6hG7Wna)>rzaVr5XUn_(g#Zo%lofyc66 zeJAhKHSp;TBq4^!-ZOr6#YFR>k@t+Zc26{~L^-x+qWQIvw@Y8Tu&{L9h0=gA{?PAB z0&~U}29}Ip7<)T^qWHDF6V0C;d3@yLm)|}0)<~$Z>|Ef^4W;W-C(nBBEDt<G_SYJT&4qhDWlD`$w{kGb0|O?1_i&bDyi)IOl?K*8>Y4U9j=&(^U^w-BWeE{2Ajr zMo0cf793eHvY>9PEB|2e@#1@nx83>ucRY8V96dey$mrS8^P{hf{$_MybiZ-Ek$37D zvE8`Jcz*i#U9Y;vU0=CCq-V~x-V@&YygeHRHXU(~xQBjMGWNpU?|WYLjC+p1eLU}` zv3o9hVE&`?UpqfB{F~udhR+Y59e!l^^zg}H&z;4i`J?$y=8qOGs!DB4olKohJ(4<` z8X7Us0|$EGL=Rj>U_=ZZ>2euLNro{MhekL zd5p6okBpoiIXSX%q-rF8IRCl);o{-hcb5ICG~Xek^YZyar;a^wbl3L;M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?B)XZae=7}*J zi-h`v9RmaYgz$GJf@waej>wsqJks4t`0pynvYVs~3(>tAfk ziWTEy($(}&1zgRyU{HCa!VfIGUj!o@*2zk1K{htFv^MX2e}_0XCpGc2hsmY_8qEn| zxj=K9;r#oJ1=}0tsQF;w6zbRf?9F$jTbZ@AG$q# z*J{~Y4js}6u)NrAp-Ho#jEVb6eOG)H^fm#rF3a6r04&>--4B7ak0Eb9(gc5VsOx#$ z_>n*!HPmIvqF^nWk|Jz`w^>Fs8TYTc-qi@`8rZZhOLmh@@01Tm9ZLzN)er84tvVEM zEfL~tmQa)3r_t2QDHGz~t-;Y`4{9{^4E!greI(4wYKyU#V`k!mYcl<_^jKPBP1R1= c8$*A&pMndrAEY_vy1j-K>O(qUd0F=U3l})!-2eap literal 0 HcmV?d00001 diff --git a/Analog Buzzer/Analog Buzzer.arduino.avr.uno.hex b/Analog Buzzer/Analog Buzzer.arduino.avr.uno.hex new file mode 100644 index 0000000..2f6e147 --- /dev/null +++ b/Analog Buzzer/Analog Buzzer.arduino.avr.uno.hex @@ -0,0 +1,63 @@ +:100000000C945C000C946E000C946E000C946E00CA +:100010000C946E000C946E000C946E000C946E00A8 +:100020000C946E000C946E000C946E000C946E0098 +:100030000C946E000C946E000C946E000C946E0088 +:100040000C9414010C946E000C946E000C946E00D1 +:100050000C946E000C946E000C946E000C946E0068 +:100060000C946E000C946E00000000080002010069 +:100070000003040700000000000000000000000072 +:10008000250028002B0000000000240027002A0083 +:10009000040404040404040402020202020203032E +:1000A0000303030301020408102040800102040836 +:1000B000102001020408102011241FBECFEFD8E049 +:1000C000DEBFCDBF21E0A0E0B1E001C01D92A930AC +:1000D000B207E1F70E945E010C94E9010C94000064 +:1000E00090E0FC01E859FF4F2491FC01EC55FF4FD3 +:1000F0003491FC01E057FF4FE491EE23C9F0222335 +:1001000039F0233001F1A8F4213019F1223029F11E +:10011000F0E0EE0FFF1FE458FF4FA591B4918FB7A9 +:10012000F894EC91611126C030953E233C938FBF2B +:1001300008952730A9F02830C9F0243049F780917C +:1001400080008F7D03C0809180008F778093800036 +:10015000DFCF84B58F7784BDDBCF84B58F7DFBCFB8 +:100160008091B0008F778093B000D2CF8091B000A3 +:100170008F7DF9CF3E2BDACF3FB7F8948091050100 +:1001800090910601A0910701B091080126B5A89BA6 +:1001900005C02F3F19F00196A11DB11D3FBFBA2F19 +:1001A000A92F982F8827BC01CD01620F711D811DD9 +:1001B000911D42E0660F771F881F991F4A95D1F75E +:1001C00008958F929F92AF92BF92CF92DF92EF925B +:1001D000FF926B017C010E94BC004B015C01C114C9 +:1001E000D104E104F104B9F00E94BC006819790956 +:1001F0008A099B09683E73408105910580F321E0DF +:10020000C21AD108E108F10888EE880E83E0981E32 +:10021000A11CB11CE4CFFF90EF90DF90CF90BF9076 +:10022000AF909F908F9008951F920F920FB60F92EC +:1002300011242F933F938F939F93AF93BF938091FC +:10024000010190910201A0910301B091040130914C +:10025000000123E0230F2D3758F50196A11DB11D94 +:10026000209300018093010190930201A093030168 +:10027000B09304018091050190910601A0910701BE +:10028000B09108010196A11DB11D809305019093C5 +:100290000601A0930701B0930801BF91AF919F9110 +:1002A0008F913F912F910F900FBE0F901F90189537 +:1002B00026E8230F0296A11DB11DD2CF789484B5F4 +:1002C000826084BD84B5816084BD85B5826085BD52 +:1002D00085B5816085BD80916E00816080936E00E0 +:1002E00010928100809181008260809381008091D2 +:1002F0008100816080938100809180008160809383 +:1003000080008091B10084608093B1008091B00042 +:1003100081608093B00080917A00846080937A003D +:1003200080917A00826080937A0080917A00816067 +:1003300080937A0080917A00806880937A0010928E +:10034000C100E9EAF0E02491E5E9F0E08491882336 +:1003500099F090E0880F991FFC01EA57FF4FA59193 +:10036000B491FC01E458FF4F859194918FB7F894B4 +:10037000EC91E22BEC938FBF15E4C0E0D0E010933A +:100380007C0080917A00806480937A0080917A006A +:1003900086FDFCCF80917800C0907900DC2CC82EBF +:1003A00061E085E00E9470000D2C000CEE08FF0853 +:1003B000C701B6010E94E10060E085E00E94700084 +:1003C000C701B6010E94E1002097C9F20E94000017 +:0603D000D6CFF894FFCF28 +:00000001FF diff --git a/Analog Buzzer/Analog Buzzer.ino b/Analog Buzzer/Analog Buzzer.ino new file mode 100644 index 0000000..ec5fdff --- /dev/null +++ b/Analog Buzzer/Analog Buzzer.ino @@ -0,0 +1,14 @@ +// Analog Buzzer +int Buzzer = 5; + +void setup() { + pinMode(Buzzer, OUTPUT); +} + +void loop() { + int val = analogRead(A5); + digitalWrite(Buzzer, HIGH); + delay(val); + digitalWrite(Buzzer, LOW); + delay(val); +}