Add Analog Buzzer code
This commit is contained in:
parent
8e3b21c657
commit
129a9e6e6f
Binary file not shown.
|
@ -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
|
|
@ -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);
|
||||||
|
}
|
Loading…
Reference in New Issue